Glyph metrics data structure. More...
#include <mitsuba/hw/font.h>
Public Attributes | |
| Point2 | tx |
| Position on the font texture. More... | |
| Vector2 | ts |
| Size on the font texture. More... | |
| Vector2i | size |
| Glyph size in pixels. More... | |
| int32_t | horizontalBearing |
| Horizontal bearing of this glyph. More... | |
| int32_t | verticalBearing |
| Vertical bearing of this glyph. More... | |
| int32_t | horizontalAdvance |
| Horizontal advance value of this glyph. More... | |
Glyph metrics data structure.
| int32_t mitsuba::Font::Glyph::horizontalAdvance |
Horizontal advance value of this glyph.
(# of pixels the pen must be advanced after rendering a glyph)
| int32_t mitsuba::Font::Glyph::horizontalBearing |
Horizontal bearing of this glyph.
(# of pixels between the pen position before having drawn the glyph and the left bounding box edge)
| Vector2 mitsuba::Font::Glyph::ts |
Size on the font texture.
| Point2 mitsuba::Font::Glyph::tx |
Position on the font texture.
| int32_t mitsuba::Font::Glyph::verticalBearing |
Vertical bearing of this glyph.
(Vertical distance between the baseline and the top of the glyph bounding box)