On 10/5/2026 5:29 AM, Dax Kelson via ntg-context wrote:
Dear Hans,
Our PDFs must keep the hinting of our old TrueType and Type 1 fonts,
because readers view them at screen resolution in FreeType-based
viewers. We do this now with our own writers. Because mainwriters is
local, we switch the font's format to a name with no writer and write
the objects from a later finalizer.
1. Would you accept lpdf.registerfontwriter(format, writer), and
exported widtharray, tounicodedictionary and the registry/metadata helpers?
2. Optionally, a switch to keep TrueType hinting as writettf.c does:
cvt, fpgm, prep and PCLT copied, glyph instructions kept, composites kept.
3. Optionally, carry Type 1 hstem/vstem and the Private hint keys into
the CFF.
We can contribute code for 2 and 3, and FreeType raster comparisons
against pdfTeX. Point 1 alone would already help us.
i suppose 2/3 make more sense but i have to look at it (what font for
instance, testcase etc)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________