IndexTextBLFontManager
BLFontManager Class Referencefinal

Font manager [C++ API].

Member Functions

Construction & Destruction
Overloaded Operators
Common Functionality
Create Functionality
Face Management

Additional Inherited Members

- Public Attributes inherited from BLObjectCore

bool BLFontManager::isValid() constnoexcept[¶]

Tests whether the font-manager is a valid FontManager and not a built-in default instance.

size_t BLFontManager::faceCount() constnoexcept[¶]

Returns the number of BLFontFace instances the font manager holds.

size_t BLFontManager::familyCount() constnoexcept[¶]

Returns the number of unique font families the font manager holds.

bool BLFontManager::hasFace(
const BLFontFaceCore& face
) constnoexcept[¶]

Tests whether the font manager contains the given font face.

BLResult BLFontManager::addFace(
const BLFontFaceCore& face
)noexcept[¶]

Adds a font face to the font manager.

Important result conditions:

BLResult BLFontManager::queryFace(
const char* name,
) constnoexcept[1/4][¶]

Queries a font face by family name and stores the result to out.

BLResult BLFontManager::queryFace() constnoexcept[2/4][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

BLResult BLFontManager::queryFace(
const char* name,
const BLFontQueryProperties& properties,
) constnoexcept[3/4][¶]

Queries a font face by family name and stores the result to out.

A properties parameter contains query properties that the query engine will consider when doing the match. The best candidate will be selected based on the following rules:

  • Style has the highest priority.
  • Weight has the lowest priority.

BLResult BLFontManager::queryFace(
const BLFontQueryProperties& properties,
) constnoexcept[4/4][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

BLResult BLFontManager::queryFacesByFamilyName(
const char* name,
) constnoexcept[1/2][¶]

Queries all font faces by family name and stores the result to out.

BLResult BLFontManager::queryFacesByFamilyName() constnoexcept[2/2][¶]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.