Get the font face that Laurent tries to hide from us.
| 530 | sf::Vector2f Renderer::LoadFont( const sf::Font& font, unsigned int size ) { |
| 531 | // Get the font face that Laurent tries to hide from us. |
| 532 | struct FontStruct { |
| 533 | void* library; |
| 534 | void* font_face; // Authentic SFML comment: implementation details |
| 535 | void* unused1; |
| 536 | void* unused2; |
| 537 | int* unused3; |
| 538 | std::string family; |
| 539 | |
| 540 | // Since maps allocate everything non-contiguously on the heap we can use void* instead of Page here. |
| 541 | mutable std::map<unsigned int, void*> unused4; |
| 542 | mutable std::vector<std::uint8_t> unused5; |
| 543 | }; |
| 544 | |
| 545 | // All your font face are belong to us too. |
| 546 | void* face = reinterpret_cast<const FontStruct&>( font ).font_face; |
nothing calls this directly
no outgoing calls
no test coverage detected