struct EE::Graphics::FontDesc¶
#include <systemfontresolver.hpp> struct FontDesc { // fields std::string family; std::string path; Uint32 faceIndex { 0 }; FontWeight weight { FontWeight::Normal }; FontStretch stretch { FontStretch::Normal }; bool italic { false }; bool monospace { false }; // methods std::string getFileKey() const; std::string getStyleKey() const; bool sameFile(const FontDesc& other) const; bool sameFile(const std::string& otherPath, Uint32 otherFaceIndex = 0) const; bool sameStyle(const FontDesc& other) const; bool operator==(const FontDesc& other) const; bool operator!=(const FontDesc& other) const; };