diff options
author | Hans Hagen <pragma@wxs.nl> | 2016-12-05 15:15:35 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-12-05 15:15:35 +0100 |
commit | ae375264381ae74f70415b2351bdbf209248e1af (patch) | |
tree | 53b73e40d13451a146c3bdac8a1d54431862c449 /doc/context/sources/general/fonts/fonts/fonts-lookups.tex | |
parent | e677a7fb12047017595fb29e212463dcb1cb2fa6 (diff) | |
download | context-ae375264381ae74f70415b2351bdbf209248e1af.tar.gz |
2016-12-05 14:50:00
Diffstat (limited to 'doc/context/sources/general/fonts/fonts/fonts-lookups.tex')
-rw-r--r-- | doc/context/sources/general/fonts/fonts/fonts-lookups.tex | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/doc/context/sources/general/fonts/fonts/fonts-lookups.tex b/doc/context/sources/general/fonts/fonts/fonts-lookups.tex index 7f1128302..e9448b884 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-lookups.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-lookups.tex @@ -342,6 +342,69 @@ properties. \stopsection +\startsection[title=Selectfont] + +The selectfont interface by Wolfgang Schuster can be used to define fonts +by name. For a long term project workflow you probably want to use filenames +but for average use names do well: + +\starttyping +\definefontfamily [mainface] [serif] [DejaVu Serif] +\definefontfamily [mainface] [sans] [DejaVu Sans] +\definefontfamily [mainface] [mono] [DejaVu Sans Mono] [features=none] +\definefontfamily [mainface] [math] [Dejavu Math] +\stoptyping + +This setup is triggered in the usual way: + +\starttyping +\setupbodyfont[mainface] +\stoptyping + +When you combine different designs you may need to apply a relative scale: + +\starttyping +\definefontfamily [mainface] [math] [XITS Math] [rscale=1.1] +\stoptyping + +Some fonts come in designsizes, like Latin Modern: + +\starttyping +\definefontfamily + [mainface] + [serif] + [Latin Modern Roman] + [designsize=auto] +\stoptyping + +You can define fallbacks, for example: + +\starttyping +\definefallbackfamily + [mainface] + [serif] + [DejaVu Serif] + [range=cyrillic] + +\definefontfamily [mainface] [serif] [TeX Gyre Pagella] +\stoptyping + +Here Pagella is used with missing characters taken from Dejavu. The ranges +are defined with: + +\starttyping +\definefontfamilypreset + [range:cyrillic] + [range={cyrillic, + cyrillicextendeda, + cyrillicextendedb, + cyrillicsupplement}] +\stoptyping + +For more details you can consult the wiki and the source file \type {font-sel.mkvi}. + +\stopsection + \stopchapter \stopcomponent |