Struct FontRasterGlyph
Defined in File font-rasterizer.h
Struct Documentation
-
struct FontRasterGlyph
Owned glyph bitmap and placement metrics; no pointer into a native face is retained.
Public Members
-
std::uint32_t width = {}
Bitmap width in pixels.
-
std::uint32_t height = {}
Bitmap row count.
-
int left = {}
Horizontal bitmap bearing from the pen in pixels.
-
int top = {}
Positive above the baseline.
-
float advance = {}
Horizontal pen advance in raster pixels.
-
float left_hint_delta = {}
Native left bearing grid-fit adjustment in pixels.
-
float right_hint_delta = {}
Native right bearing grid-fit adjustment in pixels.
-
float bitmap_scale = 1
Fixed-strike downscaling factor for character sizing.
-
FontBitmapFormat format = FontBitmapFormat::Alpha
Channel count/alpha interpretation of pixels.
-
std::vector<unsigned char> pixels
Owned, tightly packed top-to-bottom pixels.
-
std::uint32_t width = {}