Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::TextBackendFull::HbFontEntry Struct Reference

Internal storage for a HarfBuzz font object backed by FreeType. The hb_font_t is created via hb_ft_font_create_referenced(), which holds a reference to the FT_Face. We also hold our own reference (from FT_New_Memory_Face). Destruction order: destroy hb_font first (decrefs FT_Face from 2->1), then FT_Done_Face (decrefs 1->0, frees). More...

Public Member Functions

 HbFontEntry (const HbFontEntry &)=delete
HbFontEntry & operator= (const HbFontEntry &)=delete
 HbFontEntry (HbFontEntry &&other) noexcept
HbFontEntry & operator= (HbFontEntry &&other) noexcept

Public Attributes

hb_font_t * font = nullptr
FT_Face ftFace = nullptr

Detailed Description

Internal storage for a HarfBuzz font object backed by FreeType. The hb_font_t is created via hb_ft_font_create_referenced(), which holds a reference to the FT_Face. We also hold our own reference (from FT_New_Memory_Face). Destruction order: destroy hb_font first (decrefs FT_Face from 2->1), then FT_Done_Face (decrefs 1->0, frees).


The documentation for this struct was generated from the following file:
  • donner/svg/text/TextBackendFull.cc