[NTG-context] request for \definefontfamily and \definefallbackfamily

Pablo Rodriguez oinos at gmx.es
Sun Jul 7 21:29:49 CEST 2019


Hi Wolfgang,

I have two requests to be implemented in \definefontfamily.

The first one is that is able to load fonts not defined as entries in
the font database.

Here you have a minimal sample:

    \definefont[Test][file:texgyrepagella-regular.otf at 10pt]
    \definefont[TestOne][file:texgyrepagella-regular-500.otf at 10pt]

    \definefontfamily [mainface] [rm] [Pagella]
        [tf={file:texgyrepagella-regular.otf},
         bf={file:texgyrepagella-regular-500.otf}]

    \setupbodyfont[mainface]
    \starttext
    normal\\
    \bf bold not working\\

    \Test this works
    \TestOne this works
    \stoptext

 The second one would be to allow method=uppercase to
\definefallbackfamily, so it could be used to fake small caps (such as
in https://mailman.ntg.nl/pipermail/ntg-context/2018/092878.html.

Many thanks for your help,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list