Changes

Jump to navigation Jump to search
no edit summary
This basic input is typeset with the default font, Latin Modern:
<context source=yes>
\setupbodyfont[12pt]
\setupbodyfont[11pt]
\startbuffer[line]
The quick brown fox jumps over
\stopbuffer
\startbuffer[sample]\startTABLE \NC \type{\rm The quick brown fox jumps over the lazy dognormal} \NC \normal{\rm\bf The quick brown fox jumps over the lazy doggetbuffer[line]} \NC \NR \NC \type{\rmitalic} \NC \italic{\it The quick brown fox jumps over the lazy doggetbuffer[line]} \NC \NR \NC \type{\ss The quick brown fox jumps over the lazy dogbold} \NC \bold{\ss\bf The quick brown fox jumps over the lazy doggetbuffer[line]} \NC \NR \NC \type{\ssbolditalic} \it The quick brown fox jumps over the lazy dogNC \bolditalic{\getbuffer[line]} \NC \NR\stopTABLE\stopbuffer \startlines\type{\tt The quick brown fox jumps over the lazy dogserif}\serif{\getbuffer[sample]} \type{\tt\bf The quick brown fox jumps over the lazy dogsans}\sans{\getbuffer[sample]} \type{\tt\it The quick brown fox jumps over the lazy dogmono}\mono{\getbuffer[sample]} \type{\math}Inline \math: ${x = \frac{y}{2z} + x_{\text{center}}$\}\stoplines
</context>
|
And let's view the difference with our new set of fonts:
<context source=yes>
\setupbodyfont[12pt]
\definefontfamily [MyFontIdentifier] [rm] [texgyrepagella]
\definefontfamily [MyFontIdentifier] [ss] [texgyreadventor]
\definefontfamily [MyFontIdentifier] [tt] [texgyrecursor]
\definefontfamily [MyFontIdentifier] [mm] [stixtwomath]
\setupbodyfont[MyFontIdentifier, 11pt]{\rm startbuffer[line]The quick brown fox jumps over the lazy dog}\stopbuffer \startbuffer[sample]\startTABLE \NC \type{\rmnormal} \bf The quick brown fox jumps over the lazy dogNC \normal{\getbuffer[line]} \NC \NR \NC \type{\rmitalic} \NC \italic{\it The quick brown fox jumps over the lazy doggetbuffer[line]} \NC \NR \NC \type{\ss The quick brown fox jumps over the lazy dogbold} \NC \bold{\ss\bf The quick brown fox jumps over the lazy doggetbuffer[line]} \NC \NR \NC \type{\ssbolditalic} \it The quick brown fox jumps over the lazy dogNC \bolditalic{\getbuffer[line]} \NC \NR\stopTABLE\stopbuffer \startlines\type{\tt The quick brown fox jumps over the lazy dogserif}\serif{\getbuffer[sample]} \type{\tt\bf The quick brown fox jumps over the lazy dogsans}\sans{\getbuffer[sample]} \type{\tt\it The quick brown fox jumps over the lazy dogmono}\mono{\getbuffer[sample]} \type{\math}Inline \math: ${x = \frac{y}{2z} + x_{\text{center}}$\}\stoplines
</context>
}}
 
[[Category:Fonts]]

Navigation menu