Open main menu

Changes

:* GNU/LINUX: <code>export OSFONTDIR=$HOME/.fonts;/usr/share/fonts</code>
:* Add it to your .bashrc or shell equivalent to make the declaration permanent.
;2. Run ConTeXt to index the files:* update of and the file databasefonts : <codetexcode>mtxrun --generate</code>:* update of the fonts database: <code>mtxrun --script font --reload</codetexcode>;3. Check by looking for the specific font you want to use next:* a very . A common example :<codetexcode>mtxrun --script font --list --file -pattern=*helvetica*</codetexcode>
Now, let's learn how to use them for typesetting.
* It's not nice to have to write \definedfont[name:yoursuperfont-weightstyle*default at xxpt] each time you want to use a particular font.
* That why it's worth defining a '''typescript'''. It's just 3 steps, and less than 5 minutes. Then, you will be able to easily switch between fonts with {{cmd|tf}}, {{cmd|it}}, {{cmd|bf}}, {{cmd|bi}} (see [[Font_Switching#Font_styles_and_alternatives|Font styles and alternatives]]), and all the typesetting of your document will use a consistent set of fonts.
* [[Typescripts_examples| Many typescripts are ready]] for use on usual free and commercial fonts, and obviously for the [[ConTeXt_distribution's_Fonts|ConTeXt distribution's Fonts]].
= Install your new typescript to use it anywhere =
You will probably want to use your new customized typescript definition across different documents, so you have to install them in the distribution. Here is , we remind the definition.:
<texcode>
# Copy the typescript files into <code>tex/texmf-fonts/tex/context/user/</code>
# Run <code>context --generate</code> to update ConTeXt file database
# You are It's done!Now, two lines at the beginning of any input will declare to typeset with the new fonts:<texcode>#* you can add \usetypescriptfile[mynotoserif] at the beginning of any input file#* and \setupbodyfont[mynotoserif] will declare to typeset with your new font.</texcode>