Skip to content

Commit 954999c

Browse files
author
Marcin Mazurek
committed
[DDW-985] Use monospaced font that does not use ligatures for PDF rendering
1 parent 00372b5 commit 954999c

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
-280 KB
Binary file not shown.
185 KB
Binary file not shown.

source/main/ipc/generateAddressPDFChannel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import fontMediumEn from '../../common/assets/pdf/NotoSans-Medium.ttf';
1616
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../common/assets/pdf/arial-... Remove this comment to see the full error message
1717
import fontUnicode from '../../common/assets/pdf/arial-unicode.ttf';
1818
// @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/NotoSansMono-Regular.ttf';
19+
import fontMono from '../../common/assets/pdf/UbuntuMono-Regular.ttf';
2020

2121
export const generateAddressPDFChannel: // IpcChannel<Incoming, Outgoing>
2222
MainIpcChannel<
@@ -112,7 +112,7 @@ export const handleAddressPDFRequests = () => {
112112
});
113113
doc.moveDown();
114114
// Address
115-
doc.font(fontBufferMono).fontSize(9).text(address, {
115+
doc.font(fontBufferMono).fontSize(10).text(address, {
116116
align: 'center',
117117
});
118118

0 commit comments

Comments
 (0)