Changes

Jump to navigation Jump to search
Fixed wring arguments for the \definefontfamily command
</tr>
<tr valign="top" class="fourth">
<td class="cmd">[[Command/keyword:scalerscale|scalerscale]]</td>
<td>[[Command/value:NUMBER|NUMBER]]</td>
</tr>
<tr valign="top" class="fourth">
<td class="cmd">[[Command/keyword:alternative|alternative]]</td>
<td>[[Command/value:default|default]] [[Command/value:selectfont|selectfont]] [[Command/value:simplefonts|simplefonts]]</td>
</tr>
<tr valign="top" class="fourth">
</tr>
<tr valign="top" class="fourth">
<td class="cmd">[[Command/keyword:opticalsizedesignsize|opticalsizedesignsize]]</td> <td>[[Command/value:yesdefault|yesdefault]] [[Command/value:noauto|noauto]]</td>
</tr>
<tr valign="top" class="fourth">
\tf ffi, \it ffi, \bf ffi, \bi ffi.
\stoptext
</context>
 
If it is not possible to install fonts system-wide, one can explicitly specify the filename of a font. Custom fonts often don't come with math symbols or a fitting monospaced font. One can replace these using Latin Modern which comes with ConTeXt.
 
<context mode="mkiv" source="yes" text="produces">
\definefontfamily [mainface][serif] [Latin Modern Roman]
[tf=file:filename_serif_regular.ttf,
it=file:filename_serif_italic.ttf,
bf=file:filename_serif_bold.ttf,
bi=file:filename_serif_bold_italic.ttf,
sc=file:filename_serif_smallcaps.ttf]
\definefontfamily [mainface][sans] [Latin Modern Sans]
[tf=file:filename_sans_regular.ttf,
it=file:filename_sans_italic.ttf,
bf=file:filename_sans_bold.ttf,
bi=file:filename_sans_bold_italic.ttf,
sc=file:filename_sans_smallcaps.ttf]
\definefontfamily [mainface] [mono] [Latin Modern Mono] [features=none]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont [mainface,11pt]
\starttext
\tf ffi, \it ffi, \bf ffi, \bi ffi.
 
\tt Monospaced
 
$\sqrt{3x^2}$
 
\stoptext
 
</context>
gardener
110

edits

Navigation menu