Hi
Will do.
\definefontstyle is still bugging me. I gather from previous threads that it should be possible to define a new font style for casual and use that via a font switch, but I cannot get this to work. I'm not sure this is still possible.
The threads I'm referring to:
https://www.mail-archive.com/ntg-context@ntg.nl/msg00039.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg39849.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg84188.html
I might start a separate thread and ask whether \definefontstyle still works.
I also experimented with defining my own typescripts for Lucida so that casual and fax (and all the other various Lucida fonts, really) are easily accessible.
Something like:
\starttypescript[serif][lucbr]
\definefontsynonym[Serif][name:LucidaBright]
\definefontsynonym[SerifItalic][name:LucidaBright-Italic]
\definefontsynonym[SerifBold][name:LucidaBright-Demi]
\definefontsynonym[SerifBoldItalic][name:LucidaBright-DemiItalic]
\definefontsynonym[SerifSlanted][name:LucidaBright-Slanted]
\definefontsynonym[SerifCaps][name:LucidaBrightSmallcaps]
\definefontsynonym[SerifBoldCaps][name:LucidaBrightSmallCaps-Demi]
\stoptypescript
\starttypescript[serif][lucfax]
\definefontsynonym[Serif][name:LucidaFax]
\definefontsynonym[SerifItalic][name:LucidaFax-Italic]
\definefontsynonym[SerifBold][name:LucidaFax-Demi]
\definefontsynonym[SerifBoldItalic][name:LucidaFax-DemiItalic]
\stoptypescript
\starttypescript[sans][lucss]
\definefontsynonym[Sans][name:LucidaSans]
\definefontsynonym[SansItalic][name:LucidaSans-Italic]
\definefontsynonym[SansBold][name:LucidaSans-Demi]
\definefontsynonym[SansBoldItalic][name:LucidaSans-DemiItalic]
\stoptypescript
\starttypescript[mono][lucbr,luctt]
\definefontsynonym[Mono][name:LucidaTypewriter]
\definefontsynonym[MonoItalic][name:LucidaTypweriterOblique]
\definefontsynonym[MonoBold][name:LucidaTypewriterBold]
\definefontsynonym[MonoBoldItalic][name:LucidaTypweriterBoldOblique]
\stoptypescript
\starttypescript[mono][lucss,lucsstt]
\definefontsynonym[Mono][name:LucidaSansTypewriter]
\definefontsynonym[MonoItalic][name:LucidaSansTypweriterOblique]
\definefontsynonym[MonoBold][name:LucidaSansTypewriterBold]
\definefontsynonym[MonoBoldItalic][name:LucidaSansTypweriterBoldOblique]
\stoptypescript
\starttypescript[calligraphy][lucbr,luccg]
\definefontsynonym[Calligraphy][name:LucidaCalligraphy-Italic]
\stoptypescript
\starttypescript[handwriting][lucbr,luchw]
\definefontsynonym[Handwriting][name:LucidaHandwriting-Italic]
\stoptypescript
\starttypescript[serif][lucbl]
\definefontsynonym[Serif][name:LucidaBlackletter]
\stoptypescript
\starttypescript[serif][luccas]
\definefontsynonym[Serif][name:LucidaCasual]
\definefontsynonym[SerifItalic][name:LucidaCasual-Italic]
\stoptypescript
\starttypescript[lucbr]
\definetypeface[lucbr][rm][serif][lucbr][default][features=default]
\definetypeface[lucbr][mm][math][lucida][default]
\definetypeface[lucbr][tt][mono][lucbr][default][features=default]
\definetypeface[lucbr][cg][calligrpahy][default][features=default]
\definetypeface[lucbr][hw][handwriting][default][features=default]
\stoptypescript
\starttypescript[lucfax]
\definetypeface[lucfax][rm][serif][lucfax][default][features=default]
\stoptypescript
\starttypescript[lucss]
\definetypeface[lucss][ss][sans][lucss][default][features=default]
\definetypeface[lucss][tt][mono][lucss][default][features=default]
\stoptypescript
\starttypescript[luctt]
\definetypeface[luctt][tt][mono][luctt][default][features=default]
\stoptypescript
\starttypescript[lucsstt]
\definetypeface[lucsstt][tt][mono][lucsstt][default][features=default]
\stoptypescript
\starttypescript[luccg]
\definetypeface[luccg][cg][calligraphy][luccg][default][features=default]
\stoptypescript
\starttypescript[luchw]
\definetypeface[luchw][hw][handwriting][luchw][default][features=default]
\stoptypescript
\starttypescript[lucbl]
\definetypeface[lucbl][rm][serif][lucbl][default][features=default]
\stoptypescript
\starttypescript[luccas]
\definetypeface[luccas][rm][serif][luccas][default][features=default]
\stoptypescript
\starttypescript[luc]
\definetypeface[luc][rm][serif][lucbr][default][features=default]
\definetypeface[luc][mm][math][lucida][default]
\definetypeface[luc][ss][sans][lucss][default][features=default]
\definetypeface[luc][tt][mono][lucbr][default][features=default]
\definetypeface[luc][cg][calligraphy][lucbr][default][features=default]
\definetypeface[luc][hw][handwriting][lucbr][default][features=default]
\stoptypescript
\def\lucbr{\switchtobodyfont[lucbr]}
\def\lucfax{\switchtobodyfont[lucfax]}
\def\lucss{\switchtobodyfont[lucss]}
\def\luctt{\switchtobodyfont[luctt]}
\def\lucsstt{\switchtobodyfont[lucsstt]}
\def\luccg{\switchtobodyfont[luccg]}
\def\luchw{\switchtobodyfont[luchw]}
\def\lucbl{\switchtobodyfont[lucbl]}
\def\luccas{\switchtobodyfont[luccas]}
Would it make sense adding this to the wiki as well? I feel like what I'm doing is non-standard. I'm also repeating a lot of what's in the Lucida typescript file that comes with the distribution. There must be some easy way to monkey patch the existing type script file.
Mattias
------- Original Message -------
On Monday, January 30th, 2023 at 1:20 PM, Pablo Rodriguez via ntg-context
On 1/29/23 19:07, Mattias Märka via ntg-context wrote:
Hi
This is probably the most reasonable solution.
Hi Mattias,
would you be so kind to update https://wiki.contextgarden.net/Use_the_fonts_you_want to include this?
Many thanks for your help,
Pablo
___________________________________________________________________________________ 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 ___________________________________________________________________________________