///////////////////////////////////////////////////////
| 360 | |
| 361 | //////////////////////////////////////////////////////////// |
| 362 | float Font::getLineSpacing(unsigned int characterSize) const |
| 363 | { |
| 364 | FT_Face face = m_fontHandles ? m_fontHandles->face : nullptr; |
| 365 | |
| 366 | if (face && setCurrentSize(characterSize)) |
| 367 | { |
| 368 | return static_cast<float>(face->size->metrics.height) / float{1 << 6}; |
| 369 | } |
| 370 | |
| 371 | return 0.f; |
| 372 | } |
| 373 | |
| 374 | |
| 375 | //////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected