| 709 | } |
| 710 | |
| 711 | void TextureFont::drawString( const std::string &str, const vec2 &baseline, const DrawOptions &options ) |
| 712 | { |
| 713 | TextBox tbox = TextBox().font( mFont ).text( str ).size( TextBox::GROW, TextBox::GROW ).ligate( options.getLigate() ); |
| 714 | #if defined( CINDER_ANDROID ) || defined( CINDER_LINUX ) |
| 715 | vector<pair<Font::Glyph,vec2> > glyphMeasures = tbox.measureGlyphs( getCachedGlyphMetrics() ); |
| 716 | #else |
| 717 | vector<pair<Font::Glyph,vec2> > glyphMeasures = tbox.measureGlyphs(); |
| 718 | #endif |
| 719 | drawGlyphs( glyphMeasures, baseline, options ); |
| 720 | } |
| 721 | |
| 722 | void TextureFont::drawString( const std::string &str, const Rectf &fitRect, const vec2 &offset, const DrawOptions &options ) |
| 723 | { |