7#ifndef MYGUI_RESOURCE_MANUAL_FONT_H_
8#define MYGUI_RESOURCE_MANUAL_FONT_H_
22 void deserialization(xml::ElementPtr _node, Version _version)
override;
26 const GlyphInfo* getGlyphInfo(Char _id)
const override;
28 ITexture* getTextureFont()
const override;
31 int getDefaultHeight()
const override;
33 float getKerning(Char _left, Char _right)
const override;
37 void setSource(std::string_view value);
39 void setShader(std::string_view value);
42 void setTexture(MyGUI::ITexture* texture);
44 void setDefaultHeight(
int value);
46 void addGlyphInfo(Char
id,
const GlyphInfo& info);
48 void addKerningInfo(Char _left, Char _right,
float _value);
55 using CharMap = std::unordered_map<Char, GlyphInfo>;
62 int mDefaultHeight{0};
63 GlyphInfo* mSubstituteGlyphInfo{
65 MyGUI::ITexture* mTexture{
nullptr};
#define MYGUI_RTTI_DERIVED(DerivedType)
std::unordered_map< std::pair< Char, Char >, float, KerningPairHash > KerningMap