Vuo
1.0.0
|
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. | |
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.
Creates an image containing the specified text.
|
static |
Formats the specified text
for rendering using font
and backingScaleFactor
.