Blend2D
2D Vector Graphics Engine
Tests whether the font face is valid.
Tests whether the font face is empty, which is the same as !isValid()
.
Creates a new BLFontFace from a file specified by fileName
.
This is a utility function that first creates a BLFontData` and then calls createFromData(fontData, 0)
. See BLFontData::createFromFile() for more details, especially the use of readFlags
is important for system fonts.
faceIndex
, which can be used to load multiple font faces from a TrueType/OpenType collection. The use of createFromData() is recommended for any serious font handling. Creates a new BLFontFace from BLFontData at the given faceIndex
.
On success the existing BLFontFace is completely replaced by a new one, on failure an error is returned in BLResult and the existing BLFontFace is kept as is.
Returns font weight (returns default weight in case this is a variable font).
Returns font stretch (returns default weight in case this is a variable font).
Returns font style.
Returns font face information as BLFontFaceInfo.
Returns the font face type.
Returns the font face type.
Returns the number of glyphs this font face provides.
Returns a zero-based index of this font face.
Returns font face flags.
Tests whether the font face has a given flag
set.
Tests whether the font face uses typographic family and subfamily names.
Tests whether the font face uses typographic metrics.
Tests whether the font face provides character to glyph mapping.
Tests whether the font face has horizontal glyph metrics (advances, side bearings).
Tests whether the font face has vertical glyph metrics (advances, side bearings).
Tests whether the font face has a legacy horizontal kerning feature ('kern' table with horizontal kerning data).
Tests whether the font face has a legacy vertical kerning feature ('kern' table with vertical kerning data).
Tests whether the font face has OpenType features (GDEF, GPOS, GSUB).
Tests whether the font face has panose classification.
Tests whether the font face has unicode coverage information.
Tests whether the font face's baseline equals 0.
Tests whether the font face's left sidebearing point at x
equals 0.
Tests whether the font face has unicode variation sequences feature.
Tests whether the font face has OpenType Font Variations feature.
This is a symbol font.
This is a last resort font.
Returns font face diagnostics flags.
Returns a unique identifier describing this BLFontFace.
Returns BLFontData associated with this font face.
Returns a PostScript name of the font.
Returns design metrics of this BLFontFace.
Returns units per em, which are part of font's design metrics.
Returns PANOSE classification of this BLFontFace`.
Returns unicode coverage of this BLFontFace.
getCharacterCoverage()
to get a coverage calculated by Blend2D at character granularity. Calculates the character coverage of this BLFontFace.
Each unicode character is represented by a single bit in the given BitSet.
Tests whether the font face provides the given OpenType scriptTag
.
Tests whether the font face provides the given OpenType featureTag
.
Tests whether the font face provides the given OpenType variationTag
.
Retrieves OpenType script tags provided by this BLFontFace.
Each script tag is represented by 4 characters encoded in BLTag.
Retrieves OpenType feature tags provided by this BLFontFace.
Each feature tag is represented by 4 characters encoded in BLTag.
Feature tag registry:
Retrieves OpenType variation tags provided by this BLFontFace.
Each variation tag is represented by 4 characters encoded in BLTag.
Variation tag registry: