| 127 | }; |
| 128 | |
| 129 | void fontSampleApp::drawCharacterVerbose( cairo::Context &ctx, vec2 where ) |
| 130 | { |
| 131 | cairo::Matrix prevMat; |
| 132 | ctx.getMatrix( &prevMat ); |
| 133 | |
| 134 | // draw it filled |
| 135 | ctx.setSourceRgb( 1.0f, 1.0, 0.5f ); |
| 136 | ctx.translate( where ); |
| 137 | // Uncomment below to render the character filled |
| 138 | // ctx.appendPath( mShape ); |
| 139 | // ctx.fill(); |
| 140 | |
| 141 | VerboseCharDraw verb( ctx ); |
| 142 | mShape.iterate<VerboseCharDraw>( verb ); |
| 143 | |
| 144 | ctx.setMatrix( prevMat ); |
| 145 | } |
| 146 | |
| 147 | void fontSampleApp::draw() |
| 148 | { |
nothing calls this directly
no test coverage detected