Open main menu

Changes

351 bytes removed ,  20:23, 31 May 2020
no edit summary
; #2. Give a name to the set of fonts you want to use and select a first font
:* Use the command {{cmd|definefontfamily}}. Sometimes, the name of the set of font is called the "typescript identifier"
:* Let's take an example, for a Serif font, for which TeX practice is to refer to them as '''roman''' (=rm)
:* <texcode>\definefontfamily[MyFontIdentifier][rm][refcode to the serif font]</texcode>
:* <code>mtxrun --script font --list --file -pattern=*noto*</code>
; #5. Define them as a new typescript (ConTeXt vocabulary):* Use the command {{cmd|starttypescript}}.<ctexcode>\starttypescript [serif] [alegreyanotoserif] \definefontsynonym[AlegreyaSerifNotoSerif-Regular] [namefile:AlegreyaNotoSerif-Regular] \definefontsynonym[AlegreyaSerifNotoSerif-Italic] [namefile:AlegreyaNotoSerif-Italic] \definefontsynonym[AlegreyaSerif-Caps] [name:AlegreyaSC-Regular] \definefontsynonym[AlegreyaSerifNotoSerif-Bold] [namefile:AlegreyaNotoSerif-Bold] \definefontsynonym[AlegreyaSerifNotoSerif-BoldItalic] [namefile:AlegreyaNotoSerif-BoldItalic] \definefontsynonym[AlegreyaSerif-BoldCaps] [name:AlegreyaSC-Bold] \definefontsynonym[AlegreyaSerif-Black] [name:Alegreya-Black] \definefontsynonym[AlegreyaSerif-BlackItalic] [name:Alegreya-BlackItalic] \definefontsynonym[AlegreyaSerif-BlackCaps] [name:AlegreyaSC-Black]
\stoptypescript
<texcode>