Skip to content

Commit

Permalink
Merge pull request #2816 from HackbrettXXX/fix-font-name-escaping
Browse files Browse the repository at this point in the history
fix escaping of font names
  • Loading branch information
HackbrettXXX committed Jul 21, 2020
2 parents 91cecee + ef3978f commit fd01537
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 fd01537

Please sign in to comment.