| 471 | } |
| 472 | |
| 473 | void Font::FlushFaceSize() const |
| 474 | { |
| 475 | // Set the character size |
| 476 | const FT_Face face = _asset->GetFTFace(); |
| 477 | const FT_Error error = FT_Set_Char_Size(face, 0, ConvertPixelTo26Dot6<FT_F26Dot6>(_size * FontManager::FontScale), DefaultDPI, DefaultDPI); |
| 478 | if (error) |
| 479 | { |
| 480 | LOG_FT_ERROR(error); |
| 481 | } |
| 482 | |
| 483 | // Clear transform |
| 484 | FT_Set_Transform(face, nullptr, nullptr); |
| 485 | } |
| 486 | |
| 487 | String Font::ToString() const |
| 488 | { |