Changes

Jump to navigation Jump to search
another example
<cd:assignmentsdoc>options</cd:assignmentsdoc>
<cd:parameter name="rscale">
<cd:paramdoc>relative scaling</cd:paramdoc>
<cd:constant type="cd:number"></cd:constant>
</cd:parameter>
<cd:parameter name="force">
<cd:paramdoc>use the replacement font, even if the main font contains the glyphs</cd:paramdoc>
<cd:constant type="yes"></cd:constant>
<cd:constant default="yes" type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="check">
<cd:paramdoc>check if the main font contains the glyphs (adds some lag)</cd:paramdoc>
<cd:constant type="yes"></cd:constant>
<cd:constant default="yes" type="no"></cd:constant>
</cd:parameter>
<cd:parameter name="features">
<cd:paramdoc>activate font features</cd:paramdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:parameter>
See [[Unicode blocks in ConTeXt]] and [[List of Unicode blocks]].</cd:description>
<cd:examples><cd:example title="Moustache brackets">We load the moustache brackets from XITS Math because they are not available in Latin Modern Math, which is the default math font. Of course, the technique also works for text fonts(but not in this page).
<context source="yes">
\stopformula
</context>
</cd:example><cd:example title="Emojis">Our main fonts doesn’t contain emojis, so we want to take them from a specialized font.And since emojis are spread over several Unicode blocks, we just say “take every unknown glyph from that emoji font” (which doesn’t work for all symbols, of course). <texcode>\definefontfallback[emojifallback][name:EmojiOneColor][0x00000-0xFFFFF][check=yes,force=no] \definefontsynonym [Serif] [Pagella] [features=default,fallbacks=emojifallback]</texcode></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="font-col.mkvi" originator="system"></cd:source>
<cd:source file="font-col.lua"></cd:source>
<cd:wikipage originator="system" page="Category:Fonts"></cd:wikipage>
<cd:commandref name="definefontfamily"></cd:commandref>
<cd:commandref name="definefallbackfamily"></cd:commandref>
<cd:wikipage page="Unicode blocks in ConTeXt"></cd:wikipage><cd:wikipage page="List of Unicode blocks"></cd:wikipage></cd:seealso>
</cd:commandgroup>

Navigation menu