Changes

Jump to navigation Jump to search
m
Corrected a mistake in the mtxrun command (it was fot it should be fonts)
;2. Run ConTeXt to index the files and the fonts :
<texcode>mtxrun --generate
mtxrun --script font fonts --reload
</texcode>
;3. Check by looking for the specific font you want to use next. A common example:
<texcode>mtxrun --script fonts --list --all --pattern='*helvetica*'</texcode>
'''NOTE''' :In recent versions of ConTeXt (2023), the use of wildcards is no longer necessary to check for the presence of a particular font.
In addition, it is no longer necessary to tell ConTeXt where the fonts are located (on Windows or Apple Mac), as a routine has been implemented in <texcode>mtxrun.lua</texcode> that automates the font search. If no value for OSFONTDIR is set, then mtxrun.lua looks to the directory. Here is the code of <texcode>mtxrun.lua</texcode> (given here as information) :
<texcode>
</texcode>
On the other hand, if the routine seeks to locate fonts on Windows and Mac, insofar as we are seeking to install new fonts for the Linux system, we must ask ConTeXt — as indicated above — for the path that leads to the directory where the new fonts are deposited (; in this case <texcode>tex/texmf-fonts/fonts/</texcode>). Then you'll need to empty the font cache and regenerate it, so that the <texcode>mtxrun --script fonts --list --all --pattern=didot</texcode> command can return something (if you've installed a GFS Didot, or Theano Didot font, for example).
To empty the cache and regenerate it, enter the following command (in <texcode>the directory : /home/johndoe/context/tex/texmf-linux64/bin</texcode>):
<texcode>mtxrun --script cache --erase && mtxrun --generate</texcode>
 
Now you can search for the font you've just installed.
18

edits

Navigation menu