Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::FormatBarFontFamily Struct Reference

One selectable font family in the format bar's family picker. More...

#include "donner/editor/TextFormatBarPresenter.h"

Public Attributes

std::string name
 CSS family name written to the document (e.g. "Roboto", "sans-serif").
FormatBarFontPreview preview
 Donner-rendered label in this family's own face. An unavailable preview falls back to UI text while the bounded worker request is in flight.
svg::FontSource source = svg::FontSource::Bundled
 Origin of this family in the catalog. The picker lists the Bundled group before the System group and shows a header at each group boundary.
svg::FontAssetState availability = svg::FontAssetState::Ready
 Nonblocking delivery status; decoded previews remain separate from encoded availability.
bool previewFailed = false
 The available bytes could not be decoded by the preview consumer.

Detailed Description

One selectable font family in the format bar's family picker.

Member Data Documentation

◆ availability

svg::FontAssetState donner::editor::FormatBarFontFamily::availability = svg::FontAssetState::Ready

Nonblocking delivery status; decoded previews remain separate from encoded availability.

◆ name

std::string donner::editor::FormatBarFontFamily::name

CSS family name written to the document (e.g. "Roboto", "sans-serif").

◆ preview

FormatBarFontPreview donner::editor::FormatBarFontFamily::preview

Donner-rendered label in this family's own face. An unavailable preview falls back to UI text while the bounded worker request is in flight.

◆ previewFailed

bool donner::editor::FormatBarFontFamily::previewFailed = false

The available bytes could not be decoded by the preview consumer.

◆ source

svg::FontSource donner::editor::FormatBarFontFamily::source = svg::FontSource::Bundled

Origin of this family in the catalog. The picker lists the Bundled group before the System group and shows a header at each group boundary.


The documentation for this struct was generated from the following file: