How to enable Ligatures
Hi all, Fira Code is Monospaced font with programming ligatures. I don't know how to enable ligatures feature. I hope someone can give me an example. https://github.com/tonsky/FiraCode Michael
Am 2018-08-24 um 05:06 schrieb Michael Zhu
Hi all, Fira Code is Monospaced font with programming ligatures. I don't know how to enable ligatures feature.
I hope someone can give me an example.
Have a look at http://wiki.contextgarden.net/Ligatures#Enabling_Ligatures_in_fonts Does that help? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
\definefontfeature [firacode] [mode=node,script=dflt,language=dflt,calt=yes,mark=yes,mkmk=yes] \starttypescript [mono] [firacode] \definefontsynonym[FiraBold] [name:firacodebold] [features=firacode] \definefontsynonym[FiraLight] [name:firacodelight] [features=firacode] \definefontsynonym[FiraMedium] [name:firacodemedium] [features=firacode] \definefontsynonym[FiraRegular][name:firacoderegular][features=firacode] \definefontsynonym[FiraRetina] [name:firacoderetina] [features=firacode] \definefontsynonym[Mono] [FiraRegular] \definefontsynonym[MonoItalic] [FiraRegular] \definefontsynonym[MonoSlanted] [FiraRegular] \definefontsynonym[MonoBold] [FiraBold] \definefontsynonym[MonoBoldItalic] [FiraBold] \definefontsynonym[MonoBoldSlanted][FiraBold] \stoptypescript \starttypescript[firacode] \definetypeface[firacode][rm][serif][dejavu] [default] \definetypeface[firacode][ss][sans] [dejavu] [default] \definetypeface[firacode][mm][math] [dejavu] [default] \definetypeface[firacode][tt][mono] [firacode][default] \stoptypescript \setupbodyfont[firacode,12pt]
On 24 Aug 2018, at 05:06, Michael Zhu
wrote: Hi all,
Fira Code is Monospaced font with programming ligatures. I don't know how to enable ligatures feature.
I hope someone can give me an example.
https://github.com/tonsky/FiraCode
Michael ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Taco Hoekwater Elvenkind BV
participants (3)
-
Henning Hraban Ramm
-
Michael Zhu
-
Taco Hoekwater