Egui::Backend::CrystalFonts
Inherits Egui::Backend::AtlasFonts < Egui::Fonts < Reference < Object
Constants
Composite gid packing: gid = face_index * STRIDE + local_gid. Local gids never exceed the glyph count of a sane font (< 2^20 even for the huge CJK faces); four faces still fit an Int32.
Constructors
Class methods
Every loadable path becomes one face of the chain (primary first); nil only when nothing parsed. Unparseable files are skipped — a mixed list (TTF + a CFF the port can't read) keeps the faces that work.
Instance methods
The chain scan: the first face with a glyph for codepoint
wins (composite gid); 0 = missing everywhere (notdef, like the
single-font backends).
FT_Get_Kerning(FT_KERNING_DEFAULT): font units -> FT_MulFix by the size's x_scale, scaled down through MulDiv when ppem < 25, then rounded to whole pixels. Only pairs from the SAME face kern — cross-face pairs (a symbol after a letter) take zero.
{ascender, descender} in px (descender negative) of the PRIMARY face, cached per size — computed linearly from the font units exactly like FreetypeFonts.