[NTG-pdftex] \pdffontobjnum assertion failed

Akira Kakuto kakuto at fuk.kindai.ac.jp
Wed Jan 24 08:03:08 CET 2018


Hi,

> \edef\tenitnumber{\pdffontobjnum\tenit}
> \message{The font number is \tenitnumber}
>
> \tenitnumber
>
> \bye

I don't have a fix. However, I found the reason.
In the example, \tenit is never used for output.
But pdftex calls do_pdf_font() for \tenit, as if
it is used for output. Thus apparently fails in
assert(fo->last_char >= fo->first_char);

If I use \tenit for output, I have no errors:

\edef\tenitnumber{\pdffontobjnum\tenit}
\message{The font number is \tenitnumber}

\tenitnumber

\tenit 5

\bye

Thanks,
Akira



More information about the ntg-pdftex mailing list