7 #include "AsyncTexturing.h"
19 const std::string& fontInstanceId,
20 float outlineThickness,
27 const std::vector<std::string>& textureNames,
35 const std::string& GetId()
const {
return m_fontInstanceId; }
36 float GetBase()
const {
return m_base; }
37 float GetLineHeight()
const {
return m_lineHeight; }
38 float GetMeanLine()
const {
return m_meanLine; }
39 float GetHeight()
const {
return m_height; }
40 int GetNumPages()
const {
return static_cast<int>(m_textureList.size()); }
41 float GetOutlineThickness()
const {
return m_outlineThickness; }
42 float GetScaleW()
const {
return m_scaleW; }
43 float GetScaleH()
const {
return m_scaleH; }
44 bool IsSdf()
const {
return m_isSdf; }
45 float GetSdfSpread()
const {
return m_sdfSpread; }
47 const std::vector<Rendering::AsyncTexturing::IAsyncTexture*>& GetTextureList()
const {
return m_textureList; }
50 const FontCharacter& GetCharacterOrDefault(u32 charUnicode)
const;
51 bool ContainsCharacter(u32 charUnicode)
const;
52 float GetKerning(u32 firstUnicode, u32 secondUnicode)
const;
55 void LoadFontPageTextures(
57 const std::vector<std::string>& textureNames
60 const std::string m_fontInstanceId;
61 float m_outlineThickness;
71 std::vector<Rendering::AsyncTexturing::IAsyncTexture*> m_textureList;