| 79 | } |
| 80 | |
| 81 | void TextRenderer::MeasureText(const char* str, float fontScale, |
| 82 | float* outWidth, |
| 83 | float* outHeight) { // static! |
| 84 | int rows, cols; |
| 85 | _count_rows_cols(str, &cols, &rows); |
| 86 | if (outWidth) { |
| 87 | *outWidth = cols * ALPHABET_GLYPH_COLS * ALPHABET_SCALE * fontScale; |
| 88 | } |
| 89 | if (outHeight) { |
| 90 | *outHeight = rows * ALPHABET_GLYPH_ROWS * ALPHABET_SCALE * fontScale; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | TextRenderer* TextRenderer::RenderText(const char* str, float centerX, |
| 95 | float centerY) { |
nothing calls this directly
no test coverage detected