Skip to content

Commit 14f5e8c

Browse files
author
Marcin Mazurek
committed
[DDW-985] Use Roboto Mono instead of Ubuntu Mono
1 parent e47113e commit 14f5e8c

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed
112 KB
Binary file not shown.
-185 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.ttf';

source/main/ipc/generateAddressPDFChannel.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@ import type {
99
GenerateAddressPDFRendererRequest,
1010
GenerateAddressPDFMainResponse,
1111
} from '../../common/ipc/api';
12-
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../common/assets/pdf/NotoSa... Remove this comment to see the full error message
1312
import fontRegularEn from '../../common/assets/pdf/NotoSans-Regular.ttf';
14-
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../common/assets/pdf/NotoSa... Remove this comment to see the full error message
1513
import fontMediumEn from '../../common/assets/pdf/NotoSans-Medium.ttf';
16-
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../common/assets/pdf/arial-... Remove this comment to see the full error message
1714
import fontUnicode from '../../common/assets/pdf/arial-unicode.ttf';
18-
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../common/assets/pdf/NotoSa... Remove this comment to see the full error message
19-
import fontMono from '../../common/assets/pdf/UbuntuMono-Regular.ttf';
15+
import fontMono from '../../common/assets/pdf/RobotoMono-Regular.ttf';
2016

21-
export const generateAddressPDFChannel: // IpcChannel<Incoming, Outgoing>
22-
MainIpcChannel<
17+
export const generateAddressPDFChannel: MainIpcChannel<
2318
GenerateAddressPDFRendererRequest,
2419
GenerateAddressPDFMainResponse
2520
> = new MainIpcChannel(GENERATE_ADDRESS_PDF_CHANNEL);
@@ -112,7 +107,7 @@ export const handleAddressPDFRequests = () => {
112107
});
113108
doc.moveDown();
114109
// Address
115-
doc.font(fontBufferMono).fontSize(10).text(address, {
110+
doc.font(fontBufferMono).fontSize(9).text(address, {
116111
align: 'center',
117112
});
118113

0 commit comments

Comments
 (0)