Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
freetypefontutils.h File Reference
#include <string>
#include <vector>
#include "ion/math/vector.h"
#include "ion/text/layout.h"
Include dependency graph for freetypefontutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ion::text::TextSize
 TextSize contains information about the size of multi-line text. More...
 
struct  ion::text::FreeTypeFontTransformData
 This contains the values needed to transform glyph rectangles into the correct coordinates. More...
 

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::text
 

Typedefs

typedef std::vector< std::string > ion::text::Lines
 Lines of text from a single string (usually split on '
'). More...
 

Functions

const TextSize ion::text::ComputeTextSize (const FreeTypeFont &font, const LayoutOptions &options, const Lines &lines)
 Computes the size of text and returns it as a TextSize instance. More...
 
const FreeTypeFontTransformData ion::text::ComputeTransformData (const Font &font, const LayoutOptions &options, const TextSize &text_size)
 Sets the scale and translation fields of the LayoutData instance with the scale and translation required to transform the glyphs of a text string from canonical glyph coordinates to the correct target size, location, and alignment. More...
 
const Layout ion::text::LayOutText (const FreeTypeFont &font, bool use_icu, const Lines &lines, const FreeTypeFontTransformData &transform_data)
 Returns a Layout populated by glyphs representing lines of text. More...