Kemena3D
Loading...
Searching...
No Matches
kemena::kFontGlyph Struct Reference

Glyph metrics for a single character in a bitmap font atlas. More...

#include <kdatatype.h>

Public Attributes

float ax
 Horizontal advance (pen advance after drawing the glyph).
float lsb
 Left side bearing.
float tx
float ty
 UV coordinates of the glyph within the atlas texture.
int w
int h
 Width and height of the glyph in pixels.
int xoff
int yoff
 Pixel offset from the glyph origin.

Detailed Description

Glyph metrics for a single character in a bitmap font atlas.

Member Data Documentation

◆ ax

float kemena::kFontGlyph::ax

Horizontal advance (pen advance after drawing the glyph).

◆ h

int kemena::kFontGlyph::h

Width and height of the glyph in pixels.

◆ lsb

float kemena::kFontGlyph::lsb

Left side bearing.

◆ tx

float kemena::kFontGlyph::tx

◆ ty

float kemena::kFontGlyph::ty

UV coordinates of the glyph within the atlas texture.

◆ w

int kemena::kFontGlyph::w

◆ xoff

int kemena::kFontGlyph::xoff

◆ yoff

int kemena::kFontGlyph::yoff

Pixel offset from the glyph origin.


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