Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
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").
ImFont * previewFont = nullptr
 Face used to preview this family's menu entry, or null to fall back to the default UI font. Lets each family render in its own face when the editor has it loaded (the embedded Roboto and Fira Code faces today).
svg::FontSource source = svg::FontSource::Embedded
 Origin of this family in the catalog. The picker lists the Embedded group before the System group and shows a header at each group boundary.

Detailed Description

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

Member Data Documentation

◆ name

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

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

◆ previewFont

ImFont* donner::editor::FormatBarFontFamily::previewFont = nullptr

Face used to preview this family's menu entry, or null to fall back to the default UI font. Lets each family render in its own face when the editor has it loaded (the embedded Roboto and Fira Code faces today).

◆ source

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

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


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