Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::TextBackend::BitmapGlyphMetrics Struct Reference

Validated bitmap cost and placement metadata; not an authentication or cache identity token. More...

#include "donner/svg/text/TextBackend.h"

Public Member Functions

bool operator== (const BitmapGlyphMetrics &other) const =default = 0
 Scale used for this metadata query.Compare all cost and placement fields exactly.

Public Attributes

FontHandle font
 Font whose metrics were queried.
int glyphIndex = 0
 Glyph index within the font.
int selectedStrikeIndex = -1
 Selected embedded strike, or -1 without fixed strikes.
int width = 0
 Native bitmap width in pixels.
int height = 0
 Native bitmap height in pixels.
std::size_t rgbaBytes = 0
 Checked tightly packed RGBA storage bytes.
double bearingX = 0
 Scaled horizontal bearing from glyph origin.
double bearingY = 0
 Scaled upward bearing from baseline.
double scale = 1.0
 Native bitmap pixel scale.

Detailed Description

Validated bitmap cost and placement metadata; not an authentication or cache identity token.

Member Function Documentation

◆ operator==()

bool donner::svg::TextBackend::BitmapGlyphMetrics::operator== ( const BitmapGlyphMetrics & other) const = 0
default

Scale used for this metadata query.Compare all cost and placement fields exactly.

Parameters
otherMetrics to compare.
Returns
True when every field matches.

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