Struct FontSelection

Struct Documentation

struct FontSelection

Ordered font names and optional explicit sources, with application and installed-font discovery.

Public Members

std::vector<::CE::Text::FontSource> preferred

Names or explicit sources in application order; missing entries are skipped.

bool automatic_system_fonts = true

Append automatic family choices, preferring application assets.

std::optional<std::vector<std::filesystem::path>> system_directories

Unset uses system roots; empty disables installed discovery.

std::vector<std::filesystem::path> asset_directories = {"assets"}

Recursive application discovery roots; empty disables it.

Family names and filenames including extension compare without ASCII case.

An application match wins over installed fonts. Defaults are relative to the working directory; explicit FontFile paths are independent of these roots.

bool include_family_styles = false

Retain style variants for catalogue registration instead of one best face per family.