| 19 | } |
| 20 | |
| 21 | int Font::getCharWidth(char c) const |
| 22 | { |
| 23 | switch ( c ) |
| 24 | { |
| 25 | case '\t': |
| 26 | return this->maxWidth() * 2; |
| 27 | case ' ': |
| 28 | return this->maxWidth() / 2; |
| 29 | default: |
| 30 | return this->getChar(c)->width(); |
| 31 | } |
| 32 | } |
| 33 | // ----------------- GET WIDTH --------------------- |
| 34 | int Font::getTextWidth(const char *pszStr) const |
| 35 | { |
no test coverage detected