On 7/7/2023 4:51 AM, Max Chernoff wrote:
Hi Hans,

In lpdf-emb.lmt, there's a commented-out definition of
lpdf.registerfontmethod that I'd like to use. I've uncommented this in
my installation and it's worked pretty well for me, so can you please
uncomment/enable this by default in the distribution?

I'll check it but no time today.

btw ... as you like low level hacking ...

pdftex has a mechanism called pgc (pdf glyph containers) and these are used when no pk font is found (which also means: no map entry)

\pdffont ... =
\pdfscale 1000
\pdfglyph 1 100 0 0 100 100
... pdf code ...
\pdfendglyph
\pdfendfont

of course one needs a matching tfm file. I searched my disk but it looks like i removed all the test files of those times. It was some playground for Thanh and me in the good old pdftex dev days but the outlines from mp at that time were not good enough to use in these containers. (It was when the mp to pdf conmverter showed up in context mkii.) One or these now obsolete sub projects; it was kind of fun anyway. Other experiments, like with saving positions (which originally was a context feature that involved betweeen run dvi parsing with dvipos) did make it into a stable feature eventually (read: documented).

The code is still there (in write3.c) but I bet that there is no documentation.

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 : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to