Command/definefallbackfamily

From Wiki
Jump to navigation Jump to search


\definefallbackfamily

Summary

The command \definefallbackfamily is used in typescripts to setup a font family for missing characters in the main font family. It’s very similar to \definetypeface.

Settings

\definefallbackfamily[...][...][...][...=...,...]
[...]name
[...]rm ss tt mm hw cg roman serif regular sansserif sans support teletype type mono handwritten calligraphic math mathematics
[...]font
rscalenumber
designsizedefault auto
goodiesfile
rangenumber name
offsetnumber name
checkyes no
forceyes no
featuresname
tftext
bftext
ittext
sltext
bitext
bstext
sctext

OptionExplanation
Name of the font family that the typescript defines.
Font style
Name of the replacement font
Options define when the replacement font should get applied.
rscale
relative scaling
goodies
filename of a font goodies file
range
Unicode range (named or numbers) for which the replacement font should get applied
check
Check if the main fonts contains the characters (adds some lag)
force
Always apply, even if the main font contains the characters.
features
Font features to activate

Settings preset

\definefallbackfamily[...][...][...][...,...]
[...]name
[...]rm ss tt mm hw cg roman serif regular sansserif sans support teletype type mono handwritten calligraphic math mathematics
[...]font
[...,...]name

Description

Examples

Setup a replacement font for Japanese characters

\usetypescriptfile	[type-alegreya]
\usetypescript[sans][alegreya][name]

\definefallbackfamily [alegreya] [rm] [KaiseiOpti] [preset=range:japanese]
\definefontfamily     [alegreya] [rm] [Alegreya]

\definefallbackfamily [alegreya] [ss] [HiraginoSans] [preset=range:japanese]
\definefontfamily     [alegreya] [ss] [alegreya-light]

\setupbodyfont	[alegreya,rm,10pt]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: