src/cinder/Text.cpp File Reference

Namespaces

namespace  cinder

Functions

Surface cinder::renderStringPow2 (const std::string &str, const Font &font, const ColorA &color, Vec2i *actualSize, float *baselineOffset=0)
 Renders a single string and returns it as a Surface. Optional baselineOffset pointer will receive how many pixels of descender are in the returned Surface. Offset rendering the result Surface by this amount in order to preserve a consistent baseline. Consider gl::drawString() as a more convenient alternative.
Surface cinder::renderString (const std::string &str, const Font &font, const ColorA &color, float *baselineOffset=0)