[pdftex] Question about \pdfincludechars

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Aug 23 22:30:59 CEST 2016


On 2016-08-20 15:10, Gregory Heytings wrote:
>
>>
>> \pdfincludechars should include the characters directly as string
>> instead of commands, that would produce them for typesetting.
>>
>> Example:
>>
>> \def\includefont#1{%
>>  \begingroup
>>    \count10=0
>>    \font\f=#1
>>    \loop
>>    \ifnum\count10<256
>>      \lccode`\!=\count10
>>      \lowercase{%
>>        \pdfincludechars\f{!}%
>>      }%
>>      \advance\count10by1
>>    \repeat
>>  \endgroup
>> }
>>
>
> Thank you very much, this works... almost!  The only remaining problem
> is that for some reason I do not understand it does not include
> character at position 0, in spite of the fact that \count10 starts at
> 0...  Is this a bug?

No, I forgot, \lowercase does not change the case if \lccode is zero.
The fixed version uses the character with category code 0 instead of the 
exclamation mark. Then this puts the correct character in
\pdfincludechars, when the \lccode is zero.

Yours sincerely
   Heiko Oberdiek


More information about the pdftex mailing list