Font Lookupsystemfonts is primarily a package to facilitate the lookup of fonts based on typeface and style. These functions facilitate this |
|
|---|---|
Find a system font by name and style |
|
Get the fallback font for a given string |
|
List all fonts installed on your system |
|
Reset the system font cache |
|
ShapingWhile text shaping is better handed off to the textshaping package, systemfonts does provide basic shaping functionality |
|
Calculate glyph positions for strings |
|
Calculate the width of a string, ignoring new-lines |
|
Get string metrics as measured by the current device |
|
Get string widths as measured by the current device |
|
Split a string into emoji and non-emoji glyph runs |
|
Font file informationThe following functions allow you to extract various kind of information from font files |
|
Query font-specific information |
|
Query glyph-specific information from fonts |
|
Get the outline of glyphs |
|
Render glyphs to raster image |
|
Convert an extracted glyph raster to a grob |
|
Create a visual representation of what the various glyph stats mean |
|
Local fontsWhile systemfonts was mainly created to access fonts installed on the system it also has rich support for using non-installed (local) font files from R. Further, it provides facilities for accessing system fonts that are otherwise inaccessible from R |
|
Add local font files to the search path |
|
Register a font as a variant as an existing one |
|
Register font collections as families |
|
Define OpenType font feature settings |
|
Define axis coordinates for variable fonts |
|
Web fontsMany fonts are now available online through font repositories. systemfonts provide access to these, both for installing and using directly, but also for embedding inside SVGs |
|
Search font repositories for a font based on family name |
|
Ensure font availability in a script |
|
Download and add web font |
|
Create import specifications for web content |
|