Contents
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 |
| rscale | number |
| designsize | default auto |
| goodies | file |
| range | number name |
| offset | number name |
| check | yes no |
| force | yes no |
| features | name |
| tf | text |
| bf | text |
| it | text |
| sl | text |
| bi | text |
| bs | text |
| sc | text |
| Option | Explanation | ||
|---|---|---|---|
| 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 |
|
||
| goodies |
|
||
| range |
|
||
| check |
|
||
| force |
|
||
| features |
|
||
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]