| 731 | } |
| 732 | |
| 733 | void TextureFont::drawStringWrapped( const std::string &str, const Rectf &fitRect, const vec2 &offset, const DrawOptions &options ) |
| 734 | { |
| 735 | TextBox tbox = TextBox().font( mFont ).text( str ).size( fitRect.getSize() ).ligate( options.getLigate() ); |
| 736 | #if defined( CINDER_ANDROID ) || defined( CINDER_LINUX ) |
| 737 | vector<pair<Font::Glyph,vec2> > glyphMeasures = tbox.measureGlyphs( getCachedGlyphMetrics() ); |
| 738 | #else |
| 739 | vector<pair<Font::Glyph,vec2> > glyphMeasures = tbox.measureGlyphs(); |
| 740 | #endif |
| 741 | drawGlyphs( glyphMeasures, fitRect.getUpperLeft() + offset, options ); |
| 742 | } |
| 743 | |
| 744 | vec2 TextureFont::measureString( const std::string &str, const DrawOptions &options ) const |
| 745 | { |
no test coverage detected