Skip to content

Commit

Permalink
Merge pull request parallax#2816 from HackbrettXXX/fix-font-name-esca…
Browse files Browse the repository at this point in the history
…ping

fix escaping of font names
  • Loading branch information
HackbrettXXX authored 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
Original file line number Diff line number Diff line change
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.