Changes

Jump to navigation Jump to search
1,116 bytes added ,  19:34, 31 May 2020
no edit summary
= How to use one of the provided fonts: 3 steps, 5 10 sec. =
; #1. First, be aware of the [[ConTeXt distribution's Fonts|21 fonts provided]].
= How to use more than one of the provided fonts: 1 step, 5 sec. =
; #1. Very similarly to above, just select a second font
:* for a Sans Serif font, for which TeX practice is to refer to them as '''Sans Serif''' (=ss)
:* <texcode>\definefontfamily[MyFontIdentifier][ss][refcode to the sans serif font]</texcode>
:* for a monospaced font, for which TeX practice is to refer to them as '''TypewriTer''' (=tt)
:* <texcode>\definefontfamily[MyFontIdentifier][tt][refcode to the monospaced font]</texcode>
== Example ==#* There {{TwoColumnsUnderLevel1|This basic input is mainly 2 major kind of fonts you want to setup typeset with the default font, Latin Modern: '''serif''' and '''sans serif'''. <context source=yes>\setupbodyfont[14pt]\rm The quick brown fox jumps over the lazy dog\ss The quick brown fox jumps over the lazy dog#* \tt The quick brown fox jumps over the command {{cmdlazy dog</context>|rm}} And by adding the two lines discussed above, as Roman, will switch and using the reference to Tex Gyre Pagella Serif font(texgyrepagella) we obtain:<context source=yes>\definefontfamily [MyFontIdentifier] [rm] [texgyrepagella]\definefontfamily [MyFontIdentifier] [rm] [texgyreadventor]\definefontfamily [MyFontIdentifier] [rm] [texgyrecursor]\setupbodyfont[MyFontIdentifier]#* \setupbodyfont[14pt]\rm The quick brown fox jumps over the command {{cmd|lazy dog\ssThe quick brown fox jumps over the lazy dog\tt The quick brown fox jumps over the lazy dog</context>}} , as Sans Serif, will switch to Sans Serif font

Navigation menu