Changes

Jump to navigation Jump to search
Minimum effort to save yet another jargon from being orphan with a link *intentionally* set to point to a snapshot of the repo so that it will never point to a random parenthesis or a nonexistent file at all as some other links in this wiki do.
</texcode>
; #2. The boring step, define the links between ''[https://github.com/contextgarden/context-mirror/blob/a0270f13065d116355a953c6f246cbba26289fc2/tex/context/base/mkiv/font-sel.lua#L514 ConTeXt basics names]'' and the ''People-readable names''.
:* It's good to add a fallback.
<texcode>
\starttypescript [mynotoserif]
\setups[font:fallback:serif] % security: if not found==> bask back to defaults% \definefontsynonym[ConTeXt bascics basics name] [Human readable] [features=default]
\definefontsynonym[Serif] [NotoSerif-Regular] [features=default]
\definefontsynonym[SerifItalic] [NotoSerif-Italic] [features=default]
# Save your file as <code>type-(fontname|foundrysome-name-you-like).tex</code>, for example here <code>type-mynotoserif.tex</code>
# Copy the typescript files into <code>tex/texmf-fonts/tex/context/user/</code>
# Run <code>context --generate</code> to update ConTeXt file database
# It's done! Now, two lines at the beginning of any input will declare to typeset with the new fonts:
<texcode>
\usetypescriptfile[mynotoserif]% this is the 'some-name-you-like' part of the saved filename\setupbodyfont[mynotoserif]% this is the first argument to \definetypeface
</texcode>
[[Category:Fonts]]
17

edits

Navigation menu