Changes

Jump to navigation Jump to search
665 bytes added ,  23:09, 1 September 2020
m
< [[Basics#Basics_of_ConTeXt_text_formatting|Basics of text formatting]] | [[Fonts]] >
 
 
In ConTeXt there are four ways to switch fonts:
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 `\swtichtobodyfont[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] == <context source=yes>% 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 1=text 2=script 3=scriptscript 4=x 5=xx (math are temporary) class: \fontclass body : \fontbody style: \fontstyle
alternative: \fontalternative
* [[Simple Typescript Example]]* [[Example with normal and condensed font variants]]* [[Linux Libertine on mkiv]]size: \fontsize
face: \fontface
</context>
[[Category:Fonts]]

Navigation menu