Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::text::FreeTypeFontTransformData Struct Reference

This contains the values needed to transform glyph rectangles into the correct coordinates. More...

#include "freetypefontutils.h"

Collaboration diagram for ion::text::FreeTypeFontTransformData:

Public Attributes

math::Vector2f scale
 Scale to apply to resize glyphs. More...
 
std::vector< math::Vector2f > line_translations
 Translation to apply to position glyphs for each line of text. More...
 
float line_y_offset_in_pixels
 How much to translate each successive line in y, in pixels. More...
 

Detailed Description

This contains the values needed to transform glyph rectangles into the correct coordinates.

Definition at line 54 of file freetypefontutils.h.

Member Data Documentation

std::vector<math::Vector2f> ion::text::FreeTypeFontTransformData::line_translations

Translation to apply to position glyphs for each line of text.

Definition at line 58 of file freetypefontutils.h.

Referenced by ion::text::ComputeTransformData().

float ion::text::FreeTypeFontTransformData::line_y_offset_in_pixels

How much to translate each successive line in y, in pixels.

Definition at line 60 of file freetypefontutils.h.

Referenced by ion::text::ComputeTransformData(), and ion::text::LayOutText().

math::Vector2f ion::text::FreeTypeFontTransformData::scale

Scale to apply to resize glyphs.

Definition at line 56 of file freetypefontutils.h.

Referenced by ion::text::ComputeTransformData(), and ion::text::LayOutText().


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