# Cinder

# include/cinder/Text.h File Reference

Go to the source code of this file.

## Classes
class | cinder::TextLayout
## Namespaces
namespace | cinder
## Functions
Surface | cinder::renderString (const std::string &str, const Font &font, const ColorA &color, 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.