Vuo  1.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoImageText.h File Reference

Description

VuoImageText interface.

Functions

VuoRectangle VuoImage_getTextRectangle (VuoText text, VuoFont font)
 Returns a rectangle (in points) that fully encloses the specified text when rendered with the specified font.
 
VuoImage VuoImage_makeText (VuoText text, VuoFont font, float backingScaleFactor)
 Creates an image containing the specified text.
 

Function Documentation

VuoRectangle VuoImage_getTextRectangle ( VuoText  text,
VuoFont  font 
)

Returns a rectangle (in points) that fully encloses the specified text when rendered with the specified font.

Depending on the font's design (e.g., if the font is monospace), the rectangle may be larger than the actual glyphs.

VuoImage VuoImage_makeText ( VuoText  text,
VuoFont  font,
float  backingScaleFactor 
)

Creates an image containing the specified text.