[NTG-context] small lmtx update

Hans Hagen j.hagen at xs4all.nl
Tue Feb 2 15:59:26 CET 2021


Hi,

In the perspective of fancyfying context I made an alternative rendering 
for missing glyphs (and in the process also made the visualization 
italic and bold aware which is of course feature creepifying).

\replacemissingcharacters

\startbuffer
     \startlines[before=,after=]
         \strut {\tf test \char 12345\ test \char 12346\ test}
         \strut {\bf test \char 12345\ test \char 12346\ test}
         \strut {\it test \char 12345\ test \char 12346\ test}
         \strut {\bi test \char 12345\ test \char 12346\ test}
         \strut {test ὀ ρ φ α ν ῖ ο ς test}
     \stoplines
\stopbuffer

\starttext
     \startTEXpage[offset=2pt,strut=no]
         \getbuffer
         \switchtobodyfont[pagella]
         \getbuffer
         \switchtobodyfont[dejavu]
         \getbuffer
     \stopTEXpage
\stoptext

This is dedicated to Jano who wants to be able to search and these are 
proper glyphs (so one can search, assuming a sane viewer).

It also fits the "new mechanisms should reduce code" bill,

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
-----------------------------------------------------------------


More information about the ntg-context mailing list