[NTG-context] Best way to access casul fonts
Garulfo
garulfo at azules.eu
Mon Jan 23 19:42:45 CET 2023
Hi,
Following the instruction from :
https://wiki.contextgarden.net/Use_the_fonts_you_want
mtxrun --script font --list --file -pattern=*casual*
gives :
familyname     weight   style    width    variant   fontname
      filename                                subfont   fontweight
lucidacasual   normal   normal   normal   normal    lucidacasual
  /home/xxxx/.fonts/LucidaCasual.ttf
Then the following code should work :
\starttypescript [myserif]
 \definefontsynonym[LucidaCasual-Regular]   [file:LucidaCasual.ttf]
\stoptypescript
\starttypescript [myserif]
 \setups[font:fallback:serif]
 \definefontsynonym[Serif] [LucidaCasual-Regular] [features=default]
\stoptypescript
\starttypescript [myserif]
 \definetypeface [myserif] [rm] [serif] [myserif]   [default]
\stoptypescript
\setupbodyfont[12pt]
\starttext
The quick brown fox jumps over the lazy dog
\setupbodyfont[myserif]
The quick brown fox jumps over the lazy dog
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230123/734c8dd2/attachment.htm>
More information about the ntg-context
mailing list