#include "cinder/Cinder.h"
#include "cinder/Surface.h"
#include "cinder/Font.h"
#include "cinder/Vector.h"
#include <vector>
#include <deque>
#include <string>
Go to the source code of this file.
|
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. More...
|
|