Vuo  1.0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoImageText.c File Reference

Description

VuoImageText implementation.

Functions

static CFArrayRef VuoImageText_makeCTLines (VuoText text, VuoFont font, float backingScaleFactor, CTFontRef *ctFont, CGColorRef *cgColor, CGColorSpaceRef *colorspace, unsigned int *width, unsigned int *height, double *lineHeight, CGRect *bounds, CGRect **lineBounds)
 Formats the specified text for rendering using font and backingScaleFactor.
 
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.

static CFArrayRef VuoImageText_makeCTLines ( VuoText  text,
VuoFont  font,
float  backingScaleFactor,
CTFontRef *  ctFont,
CGColorRef *  cgColor,
CGColorSpaceRef *  colorspace,
unsigned int *  width,
unsigned int *  height,
double *  lineHeight,
CGRect *  bounds,
CGRect **  lineBounds 
)
static

Formats the specified text for rendering using font and backingScaleFactor.