29 CharMap::iterator iter = mCharMap.find(_id);
31 if (iter != mCharMap.end())
34 return mSubstituteGlyphInfo;
37 void ResourceManualFont::loadTexture()
39 if (mTexture ==
nullptr)
43 if (mTexture ==
nullptr)
46 if (mTexture !=
nullptr)
59 if (node->
getName() ==
"Property")
63 if (key ==
"Source") mSource = value;
70 if (mTexture !=
nullptr)
72 int textureWidth = mTexture->
getWidth();
73 int textureHeight = mTexture->
getHeight();
81 while (element.
next(
"Code"))
88 if (value ==
"cursor")
90 else if (value ==
"selected")
92 else if (value ==
"selected_back")
94 else if (value ==
"substitute")
99 float advance(utility::parseValue<float>(element->
findAttribute(
"advance")));
106 std::string sizeString;
110 size = utility::parseValue<FloatSize>(sizeString);
114 advance = size.
width;
124 coord.
left / textureWidth,
125 coord.
top / textureHeight,
126 coord.
right() / textureWidth,
127 coord.
bottom() / textureHeight)
131 mSubstituteGlyphInfo = &glyphInfo;
146 return mDefaultHeight;