diff options
Diffstat (limited to 'doc/context/sources/general/fonts/fonts/fonts-formats.tex')
-rw-r--r-- | doc/context/sources/general/fonts/fonts/fonts-formats.tex | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/doc/context/sources/general/fonts/fonts/fonts-formats.tex b/doc/context/sources/general/fonts/fonts/fonts-formats.tex index dc98ee486..9ad6bc9bd 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-formats.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-formats.tex @@ -81,7 +81,7 @@ descender. The width of the bounding box is not by definition the width of the glyph. In \TYPEONE\ and \OPENTYPE\ fonts each shape has a so called advance width and that is the one that will be used. -\usemodule[fnt-40] +\usemodule[fonts-kerns] \startplacefigure [location=here,reference=fig:glyph-kerns,title={Kerning in Latin Roman, Cambria, Pagella and Dejavu.}] \scale[width=\textwidth]{\startcombination[1*4] @@ -844,17 +844,16 @@ to the representation that we need they get cached. You can peek into the cache which is someplace on your system (depending on the setup): \starttabulate[|l|p|] -\NC \type{fonts/afm} \NC type one fonts, converted from \type {afm} and \type - {pfb} files \NC \NR -\NC \type{fonts/data} \NC font name databases \NC \NR -\NC \type{fonts/mp} \NC fonts created using \METAPOST \NC \NR -\NC \type{fonts/otf} \NC open type fonts, converted from \type {ttf}, \type {otf}, - \type {ttc} and \type {ttx} files loaded using the - \FONTFORGE\ loader \NC \NR -\NC \type{fonts/otl} \NC open type fonts, converted from \type {ttf}, \type {otf}, - \type {ttc} and \type {ttx} files loaded using the - \CONTEXT\ \LUA\ loader \NC \NR -\NC \type{fonts/shapes} \NC outlines of fonts (for instance for use in \METAFUN) \NC \NR +\NC \type{fonts/data} \NC font name databases \NC \NR +\NC \type{fonts/mp} \NC fonts created using \METAPOST \NC \NR +\NC \type{fonts/one} \NC type one fonts, converted from \type {afm} and \type + {pfb} files \NC \NR +\NC \type{fonts/otl} \NC open type fonts, converted from \type {ttf}, \type {otf}, + \type {ttc} and \type {ttx} files loaded using the + \CONTEXT\ \LUA\ loader \NC \NR +\NC \type{fonts/pdf} \NC font shapes for color fonts \NC \NR +\NC \type{fonts/shapes} \NC outlines of fonts (for instance for use in \METAFUN) \NC \NR +\NC \type{fonts/streams} \NC font programs for variable font instances \NC \NR \stoptabulate There can be three types of files there. The \type{tma} files are just \LUA\ @@ -868,6 +867,30 @@ font or when the \CONTEXT\ font loader has been updated. \stopsection +\startsection[title=Paths] + +The search for fonts happens on paths defined in \type {texmf.cnf}. The information +in there is used to generate a file database for fast access with priorities based +on file type. The \TDS\ is starting point. The environment variable driven paths +\type {OSFONTDIR} (set automatically) and \type {EXTRAFONTDIR} are taken into account. + +In addition you can set \type {RUNTIMEFONTS} which is, when set, consulted at +runtime. You can also add a path in your style: + +\starttyping +\usefontpath[c:/data/projects/myproject/fonts] +\stoptyping + +although in general we recommend to put fonts in + +\starttyping +<texroot>/tex/texmf-fonts/fonts/data] +\stoptyping + +which is more efficient. + +\stopsection + \stopchapter \stopcomponent |