Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::Font::Glyph Struct Reference

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...
 

Detailed Description

Glyph metrics data structure.

Member Data Documentation

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)

Vector2i mitsuba::Font::Glyph::size

Glyph size in pixels.

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)


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