Skip to content

Commit fb76604

Browse files
authored
fix escaping of font names (#3018)
fix #3000
1 parent a2a4474 commit fb76604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/utf8.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ import { jsPDF } from "../jspdf.js";
215215
"<</Subtype/TrueType/Type/Font/ToUnicode " +
216216
cmap +
217217
" 0 R/BaseFont/" +
218-
font.fontName +
218+
pdfEscapeWithNeededParanthesis(font.fontName) +
219219
"/FontDescriptor " +
220220
fontDescriptor +
221221
" 0 R" +

0 commit comments

Comments
 (0)