/////////////////////////////////////////////////////////////////////////////////// Run
| 117 | //////////////////////////////////////////////////////////////////////////////////////// |
| 118 | // Run |
| 119 | struct Run { |
| 120 | Run( const string &aText, const Font &aFont, const ColorA &aColor ) |
| 121 | : mText( aText ), mFont( aFont ), mColor( aColor ) |
| 122 | { |
| 123 | #if defined( CINDER_MSW_DESKTOP ) |
| 124 | mWideText = toUtf16( mText ); |
| 125 | #endif |
| 126 | } |
| 127 | |
| 128 | string mText; |
| 129 | Font mFont; |
| 130 | ColorA mColor; |
| 131 | #if defined( CINDER_MSW_DESKTOP ) |
| 132 | std::u16string mWideText; |
| 133 | // in GDI+ rendering we need to know each run's typographic metrics |
| 134 | float mWidth; |
| 135 | float mDescent, mLeading, mAscent; |
| 136 | #endif |
| 137 | }; |
| 138 | |
| 139 | //////////////////////////////////////////////////////////////////////////////////////// |
| 140 | // Line |
no outgoing calls
no test coverage detected