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

TextSize contains information about the size of multi-line text. More...

#include "freetypefontutils.h"

Collaboration diagram for ion::text::TextSize:

Public Attributes

float line_height_in_pixels
 Height of a single line of text in pixels. More...
 
math::Vector2f rect_size_in_pixels
 Size of the entire text rectangle in pixels. More...
 
float text_height_in_pixels
 Height of the text inside the rectangle in pixels. More...
 
float first_line_above_baseline
 Max height above baseline of the first line of text (depends on contents!). More...
 
std::vector< float > line_widths_in_pixels
 Width of each line of text in pixels. More...
 

Detailed Description

TextSize contains information about the size of multi-line text.

Definition at line 39 of file freetypefontutils.h.

Member Data Documentation

float ion::text::TextSize::first_line_above_baseline

Max height above baseline of the first line of text (depends on contents!).

Definition at line 47 of file freetypefontutils.h.

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

float ion::text::TextSize::line_height_in_pixels

Height of a single line of text in pixels.

Definition at line 41 of file freetypefontutils.h.

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

std::vector<float> ion::text::TextSize::line_widths_in_pixels

Width of each line of text in pixels.

Definition at line 49 of file freetypefontutils.h.

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

math::Vector2f ion::text::TextSize::rect_size_in_pixels

Size of the entire text rectangle in pixels.

Definition at line 43 of file freetypefontutils.h.

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

float ion::text::TextSize::text_height_in_pixels

Height of the text inside the rectangle in pixels.

Definition at line 45 of file freetypefontutils.h.

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


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