MCPcopy Create free account
hub / github.com/TankOs/SFGUI / FontStruct

Class FontStruct

src/SFGUI/Renderer.cpp:532–543  ·  view source on GitHub ↗

Get the font face that Laurent tries to hide from us.

Source from the content-addressed store, hash-verified

530sf::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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected