
Am Sat, 12 Apr 2025 22:48:56 +0200 schrieb luigi scarso:
On Sat, 12 Apr 2025 at 14:57, Ulrike Fischer
wrote: With pdftex it is possible to restrict a \pdfglyphtounicode declaration to a specific tfm. So in the following example the A from cmr10 is mapped to B, but the A from cmss10 is untouched: ...
Would it be possible to extend luatex to support the tfm: syntax too? Or is there an alternative to change tounicode mappings?
texlive/trunk/Build/source/texk/web2c/luatexdir/font/pdfglyphtounicode-readme.txt (at least from 2020-02-15 13:45:08)
""" In pdftex there are more heuristics going on when determining the tounicode mapping:
- more lookups using periods - a prefix tfm:cmr10/foo -> bar mapping
Because in luatex one can have a callback that just loads the tfm and then decorates it with tounicodes we don't do this in luatex.
HH """
--
Pity ;-(. It also looks as if loading manually a cmap isn't an option either (if \pdfgentounicode is 1) as \pdfnobuiltintounicode is not support either. And I didn't find yet examples or a documentation how to define a callback that "decorates" the tfm. -- Ulrike Fischer http://www.troubleshooting-tex.de/