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

Pablo Rodriguez oinos at gmx.es
Fri Feb 7 21:32:50 CET 2020


Hi Wolfgang,

would it be possible that \definefontfamily could load fonts directly
(not defined in the font database), like \definefont?

    \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 improvement would be to allow "method=uppercase" with
\definefallbackfamily to be able to fake smallcaps (as used with
\definefontfallback 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