----------------- GET WIDTH ---------------------
| 32 | } |
| 33 | // ----------------- GET WIDTH --------------------- |
| 34 | int Font::getTextWidth(const char *pszStr) const |
| 35 | { |
| 36 | // verify valid size index |
| 37 | if ( !pszStr || !this->isValid() ) |
| 38 | return 0; |
| 39 | |
| 40 | // Retrieve size |
| 41 | int size = 0; |
| 42 | for ( ; *pszStr; ++pszStr ) |
| 43 | size += this->getCharWidth(*pszStr); |
| 44 | |
| 45 | return size; |
| 46 | } |
| 47 | // ----------------- GET WIDTH --------------------- |
| 48 | int Font::getTextHeight(const char *pszStr) const |
| 49 | { |
no test coverage detected