[pdftex] pdftex - Encoding for metafont PK fonts

Pali Rohár pali.rohar at gmail.com
Tue Jun 28 00:04:45 CEST 2016

On Monday 27 June 2016 23:47:09 Karl Berry wrote:
>     pdftex-pkfonts-encfile-tounicode-v2.patch
>     ...
>     > Let me know what do you think about it and if it can be added
>     > to pdftex project.
> At first blush, it seems plausible, but it needs study.
> Simple question: are you ok with your code being released under
> GPLv2-or-later?

No problem.

> More complex: can you please provide a small self-contained example
> that shows the new feature?  So I can see what happens in action.

\pdfmapline{+csb12 <csr.enc}
\csb \char232

Char 232 in font bitmap PK csb12 is 'č' (LATIN SMALL LETTER C WITH 
CARON). If you pdftex without my patch for generating pdf, then if you 
select that character in pdf viewer you will see 'è'. Because 232 is in 
hex 0xE8 and unicode U+00E8 is 'è'.

My patch adding support for specifying ENC file for PK fonts. Before my 
patch \pdfmapline primitive was used only for Type 1, OpenType and 
TrueType fonts. Now it is possible to use \pdfmapline to specify also PK 
font and <file.enc syntax for reencoding.

Here file csr.enc contains mapping for font csb12 and there is specified 
that on position 232 is glyph with name /ccaron.

> Ideally: can you provide a patch (starting point) for the
> documentation?

What do you mean by this? I do not understand what is starting point to 
the documentation...

> Don't worry about English or style or whatever; the
> actual content of what users should know is what's important.

Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://tug.org/pipermail/pdftex/attachments/20160628/4b1b54bc/attachment.bin>

More information about the pdftex mailing list