![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
GlyphMetrics describes a glyph's position and dimensions in the rasterized glyph bitmap space. More...
#include <GlyphMetrics.h>
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... | |
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.
| int32_t ramses::GlyphMetrics::advance |
Glyph advance (distance from origin of this glyph to where origin of next glyph should start)
| uint32_t ramses::GlyphMetrics::height |
Glyph height.
| GlyphKey ramses::GlyphMetrics::key |
Glyph key (GlyphId + FontInstanceId)
| int32_t ramses::GlyphMetrics::posX |
Glyph offset on x-axis.
| int32_t ramses::GlyphMetrics::posY |
Glyph offset on y-axis.
| uint32_t ramses::GlyphMetrics::width |
Glyph width.