Blend2D
2D Vector Graphics Engine
Font [C++ API].
Tests whether the font is a valid instance.
Tests whether the font is empty, which is the same as !isValid()
.
Creates a new font from the existing font face
scaled to the given size
.
Creates a new font from the existing font face
scaled to the given size
.
This is an overloaded function that takes additional argument `featureSettings.
Creates a new font from the existing font face
scaled to the given size
.
This is an overloaded function that takes additional arguments, which are used to override font featureSettings
and font variationSettings
.
Returns the type of the font's associated font face.
Returns the flags of the font.
Returns the size of the font (as float).
Sets the font size to size
.
Returns the font's associated font face.
Returns the same font face, which was passed to createFromFace()
.
Returns the weight of the font.
Returns the stretch of the font.
Returns the style of the font.
Returns the "units per em" (UPEM) of the font's associated font face.
Returns a 2x2 matrix of the font.
The returned BLFontMatrix
is used to scale fonts from design units into user units. The matrix usually has a negative m11
member as fonts use a different coordinate system than Blend2D.
Returns the scaled metrics of the font.
The returned metrics is a scale of design metrics that match the font size and its options.
Returns the design metrics of the font.
The returned metrics is compatible with the metrics of BLFontFace
associated with this font.
Returns font feature settings.
Sets font feature settings to featureSettings
.
Resets font feature settings.
Returns font variation settings.
Sets font variation settings to variationSettings
.
Resets font variation settings.