In order to do correct text rendering, the font needed must be figured out. A
common case is rendering of emojis within a string where the system emoji
font is used rather than the requested font. This function will inspect the
provided strings and split them up in runs that must be rendered with the
emoji font, and the rest. Arguments are recycled to the length of the string
vector.
Arguments
- string
A character vector of strings that should be splitted.
- family
The name of the font families to match
- italic
logical indicating the font slant
- bold
logical indicating whether the font weight
- path, index
path an index of a font file to circumvent lookup based on family and style