Re: Question about \pdfincludechars

Heiko Oberdiek <heiko.oberdiek-gM/[email protected]>
Newsgroups gmane.comp.tex.pdftex
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.