Changes

Jump to navigation Jump to search
no edit summary
It's like [[Use_fonts_found_on_the_web|Use fonts found on the web]], but instead of having to store the fonts files in a specific folder of your ConTeXt installation, you would like ConTeXt to take into account the folders used by your computer to store fonts.
 
 
;1. Specify where the fonts should be looked for
:* This is done by setting the '''OSFONTDIR''' environment variable.
:** WINDOWS: <code>set OSFONTDIR=c:/windows/fonts/</code>
:** MAC: <code>export OSFONTDIR=/Library/Fonts/;/System/Library/Fonts;$HOME/Library/Fonts</code>
:** GNU/LINUX: <code>export OSFONTDIR=/Library/Fonts/;/System/Library/Fonts;$HOME/Library/Fonts</code>
:** Add it to your .bashrc or shell equivalent to make the declaration permanent.
 
;2. Update ConTeXt databases
:* the file database: <code>mtxrun --generate</code>
:* the fonts database: <code>mtxrun --script font --reload</code>
 
;3. Check by looking for the specific font you want to use next
:* a very common example <code>mtxrun --script font --list --file -pattern=*helvetica*</code>
 
 
You have now:
* to define [[Use_fonts_found_on_the_web#Use_of_the_different_font_variations|a new typescript]] or use one of the [[Typescripts_examples| many typescripts already available]]
* and then [[Use_fonts_found_on_the_web#Install_and_use_your_new_typescript_definition| install and use it]] in you input file.
 
 
 
 
= Quick use of a new font =

Navigation menu