[NTG-pdftex] \pdffontobjnum assertion failed
Akira Kakuto
kakuto at fuk.kindai.ac.jp
Thu Jan 25 05:09:44 CET 2018
Hi,
+static int font_has_subset(internalfontnumber f)
+{
+ int i, s;
+ /* search for |first_char| and |last_char| */
+ for (i = fontbc[f]; i <= fontec[f]; i++)
+ if (pdfcharmarked(f, i))
+ break;
+ s = i;
+ for (i = fontec[f]; i >= fontbc[f]; i--)
+ if (pdfcharmarked(f, i))
+ break;
+ if (s > i)
+ return 0;
+ else
+ return 1;
+}
+
If no character is used, as in the present example,
first_char = s = fontec[f] + 1 ( = 128 for \tenit )
last_char = i = fontbc[f] - 1 ( = -1 for \tenit )
so s > i or return 0. I think it is nice to apply
the patch by Hironobu.
Best,
Akira
More information about the ntg-pdftex
mailing list