| 9 | } |
| 10 | |
| 11 | FontChar *Font::getChar(char c) const |
| 12 | { |
| 13 | u8 ch = static_cast<u8>(c); |
| 14 | if ( this->isValid() && |
| 15 | this->low <= ch && ch <= this->high && |
| 16 | this->chrs[ch - this->low] != reinterpret_cast<const FontChar*>(this) ) |
| 17 | return this->chrs[ch - this->low]; |
| 18 | return nullptr; |
| 19 | } |
| 20 | |
| 21 | int Font::getCharWidth(char c) const |
| 22 | { |
no test coverage detected