Skip to content

Commit

Permalink
fix escaping of font names
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX committed Jul 21, 2020
1 parent 91cecee commit ef3978f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/utf8.js
Expand Up @@ -146,7 +146,7 @@
out("/Type /Font");
out("/Subtype /Type0");
out("/ToUnicode " + cmap + " 0 R");
out("/BaseFont /" + font.fontName);
out("/BaseFont /" + pdfEscapeWithNeededParanthesis(font.fontName));
out("/Encoding /" + font.encoding);
out("/DescendantFonts [" + DescendantFont + " 0 R]");
out(">>");
Expand Down

0 comments on commit ef3978f

Please sign in to comment.