RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Public Attributes | List of all members
ramses::GlyphMetrics Struct Reference

GlyphMetrics describes a glyph's position and dimensions in the rasterized glyph bitmap space. More...

#include <GlyphMetrics.h>

Collaboration diagram for ramses::GlyphMetrics:
[legend]

Public Attributes

GlyphKey key
 Glyph key (GlyphId + FontInstanceId) More...
 
uint32_t width
 Glyph width. More...
 
uint32_t height
 Glyph height. More...
 
int32_t posX
 Glyph offset on x-axis. More...
 
int32_t posY
 Glyph offset on y-axis. More...
 
int32_t advance
 Glyph advance (distance from origin of this glyph to where origin of next glyph should start) More...
 

Detailed Description

GlyphMetrics describes a glyph's position and dimensions in the rasterized glyph bitmap space.

Width and height are the pixel dimensions of the glyph - must match the pixel data of the glyph provided by its corresponding font instance. GlyphKey uniquely identifies the glyph by referencing its origin character and font instance. The posX/posY values are local pixel values in the coordinate system of the text line. The advance value is the local advance (see Freetype2 docs) for each glyph.

Member Data Documentation

◆ advance

int32_t ramses::GlyphMetrics::advance

Glyph advance (distance from origin of this glyph to where origin of next glyph should start)

◆ height

uint32_t ramses::GlyphMetrics::height

Glyph height.

◆ key

GlyphKey ramses::GlyphMetrics::key

Glyph key (GlyphId + FontInstanceId)

◆ posX

int32_t ramses::GlyphMetrics::posX

Glyph offset on x-axis.

◆ posY

int32_t ramses::GlyphMetrics::posY

Glyph offset on y-axis.

◆ width

uint32_t ramses::GlyphMetrics::width

Glyph width.


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