std1.0.0-beta-7 SafeC docs

std :: gui::gui_text

Struct std::GuiTextGlyph

#include <std/gui/gui_text.h> source

struct GuiTextGlyph {
    const ?&GuiTypeface face;
    int glyph;
    float x;
    float y;
    float advance;
    int space;
    unsigned long byteStart;
    unsigned long byteEnd;
}

One positioned glyph of a GuiTextLayout.

Fields

§const ?&GuiTypeface facesource

the face it comes from (fallback for missing glyphs)

§int glyphsource
§float xsource

pen position relative to the layout's origin (top-left)

§float ysource

baseline

§float advancesource
§int spacesource

a space or tab (hangs at a line end)

§unsigned long byteStartsource

the UTF-8 bytes it was made from

§unsigned long byteEndsource