GL Studio Safety Critical Embedded C++ Runtime Library
GlsFontBase::GlyphAttribute Struct Reference

#include <gls_font_base.h>

Public Attributes

GlsFloat32 width
 
GlsFloat32 varTexX1
 
GlsFloat32 varTexX2
 
GlsFloat32 fixedTexX1
 
GlsFloat32 fixedTexX2
 
GlsFloat32 texY1
 
GlsFloat32 texY2
 
GlsFloat32 horiBearingX
 
GlsFloat32 horiAdvance
 

Detailed Description

describes attributes for one glyph in the font

Member Data Documentation

GlsFloat32 GlsFontBase::GlyphAttribute::fixedTexX1

Left most x position in the texture for fixed width font spacing. (in texture coordinates)

GlsFloat32 GlsFontBase::GlyphAttribute::fixedTexX2

Right most x position in the texture for fixed width font spacing. (in texture coordinates)

GlsFloat32 GlsFontBase::GlyphAttribute::horiAdvance

Distance to advance the pen position after drawing this glyph for horizontal strings.

GlsFloat32 GlsFontBase::GlyphAttribute::horiBearingX

Distance from pen position to the left edge of the glyph (varTexX1) for horizontal strings.

GlsFloat32 GlsFontBase::GlyphAttribute::texY1

Lowest y position in the texture (in texture coordinates)

GlsFloat32 GlsFontBase::GlyphAttribute::texY2

Upper most y position in the texture (in texture coordinates)

GlsFloat32 GlsFontBase::GlyphAttribute::varTexX1

Left most x position in the texture for variable width font spacing. (in texture coordinates)

GlsFloat32 GlsFontBase::GlyphAttribute::varTexX2

Right most x position in the texture for variable width font spacing. (in texture coordinates)

GlsFloat32 GlsFontBase::GlyphAttribute::width

Glyph width in pixels