25 Jan
2018
25 Jan
'18
5:09 a.m.
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