struct

CMiriFontInfo

Module
Miri
Header
#include "Miri/Text/CMiriFont.h"
Namespace
Miri

Properties

TypeNameDescription
std::stringFontFamilyDefault "Default".
floatSizeDefault 14.0f.
boolBoldDefault false.
boolItalicDefault false.
floatLineHeightLogical pixels from one baseline to the next; 0 takes the face's own ascent plus descent. A taller value splits the extra evenly above and below the glyphs (CSS half-leading), so the text stays centred in its line. The design tokens' lineHeight lands here. Default 0.0f.
floatLetterSpacingLogical pixels added after every glyph that advances (the tokens' letterSpacing; Overline uses 1). Default 0.0f.
std::stringFeaturesOpenType features for the shaper, comma or space separated in HarfBuzz syntax: "tnum" (tabular figures, for numeric columns and timers that must not jitter), "ss01", "case", "-liga". The tokens' features land here.
EMiriFontRasterRasterDefault EMiriFontRaster::Bitmap.

Public functions

ReturnsNameDescription
booloperator==TAttribute polls a bound font by comparing; a type without == reads as changed on every poll and would invalidate the block every frame.
booloperator!=

Function details

operator==

C++
bool operator==(const CMiriFontInfo& other) const

TAttribute polls a bound font by comparing; a type without == reads as changed on every poll and would invalidate the block every frame.

operator!=

C++
bool operator!=(const CMiriFontInfo& other) const
Generated from Miri/Text/CMiriFont.h via miri.json · Dec 5, 2026Version 1.1.0