Changes

Jump to navigation Jump to search
1,163 bytes added ,  11:35, 3 February 2022
m
→‎Font sizes: link setupinterlinespace command
\c!em=\v!slanted]
</texcode>
'''N.B.''': <code>scirptscript</code> and <code>scriptsize</code> are used in math mode.
It is also possible to set the scaling factors for specific font sizes. For example, if you want {{cmd|tfa}} to set the effective font size to 12pt when the bodyfont size is 10pt, and to set the effective font size to
words: they do not change the bodyfont, so they don't affect interline spacing or math font sizes. So, if
you want to change the font size of an entire paragraph, use
{{cmd|switchtobodyfont}} described below in [[Font_SwitchingFont Switching#Complete_font_changeComplete font .28bodyfont.29 change|Complete Font Changefont (bodyfont) change]]. However, itis fine to use them These caveats also hold when the font switches are used as style directives in setup commands, that is, using themas an option for <code>[[Style_and_Color_Parameters|style=]]...</code> in any setup command that accepts<code>style</code> option. For example, if you are defining a block quote environment that uses a smaller font size, instead of  <texcode>\definedelimitedtext[extract][style=\tfx]</texcode> you should use <texcode>\definedelimitedtext[extract][style=\tfx\setupinterlinespace]</texcode> Note however that {{cmd|setupinterlinespace}} is added automatically for section heads, so  <texcode>\setuphead[section][style=\bfa]</texcode> works correctly.
== Mnemonic font switches ==
So far we have discussed style and size changes within a given typeface
family. If you want to use a different typeface altogether, such as Times or
Palatino, use `\switchtobodyfont[times]` or `\switchtobodyfont[palatino]`. Here `times` and `palatino` refer to the name of the typescript definitions for the font. ConTeXt distribution comes with some pre-defined typescripts; if you want to switch to another font, you need to define your own typescript. For details, see [[Fonts | the following articlespage on fonts]].
== From font-var.mkvi [https://source.contextgarden.net/tex/context/base/mkiv/font-var.mkvi?search=fontface#l49] ==
* [[Simple Typescript Example]]<context source=yes>* [[Roboto Typescript]] an example with % fontclass % modern dejavu% fontbody % ... 10pt 11pt 12pt ...% fontstyle % rm ss tt mm hw cg ...% fontalternative % tf bf sl it bs bi sc ...% fontsize % a b c d ...% fontface % 0=normal and condensed font variants]]* [[Linux Libertine on mkiv]]1=text 2=script 3=scriptscript 4=x 5=xx (math are temporary)
class: \fontclass
body : \fontbody
 
style: \fontstyle
 
alternative: \fontalternative
 
size: \fontsize
 
face: \fontface
 
</context>
[[Category:Fonts]]
5

edits

Navigation menu