Skip to contents

Register the font 'STIX Two Math', shipped with 'gdtools', so that it can be found by name with the 'systemfonts' package: by functions measuring or drawing equations (such as the 'equatags' package) and by graphic devices using 'systemfonts' ('ragg', 'svglite', 'ggiraph').

'STIX Two Math' is an OpenType math font: it has a 'MATH' table giving the parameters used to lay out equations, and size variants of operators and delimiters.

Nothing is done when a font is already found under name, for example when 'STIX Two Math' is installed on the system (it is on macOS).

Usage

register_stixmath(name = "STIX Two Math")

Arguments

name

the name to use for the font family when registering with 'systemfonts'.

Value

TRUE if a font is found under name after the operation.

License

'STIX Two Math' (version 2.13 b171) is copyright The STIX Fonts Project Authors and licensed under the SIL Open Font License 1.1, see system.file("fonts", "stix", "OFL.txt", package = "gdtools") and the file COPYRIGHTS of the package.

Examples

register_stixmath()
#> [1] TRUE