44 CharMap::iterator iter = mCharMap.find(_id);
46 if (iter != mCharMap.end())
49 return mSubstituteGlyphInfo;
52 void ResourceManualFont::loadTexture()
54 if (mTexture ==
nullptr)
58 if (mTexture ==
nullptr)
73 if (node->
getName() ==
"Property")
77 if (key ==
"Source") mSource = value;
84 if (mTexture !=
nullptr)
86 int textureWidth = mTexture->
getWidth();
87 int textureHeight = mTexture->
getHeight();
95 while (element.
next(
"Code"))
102 if (value ==
"cursor")
104 else if (value ==
"selected")
106 else if (value ==
"selected_back")
108 else if (value ==
"substitute")
113 float advance(utility::parseValue<float>(element->
findAttribute(
"advance")));
118 advance = coord.
width;
128 coord.
left / textureWidth,
129 coord.
top / textureHeight,
130 coord.
right() / textureWidth,
131 coord.
bottom() / textureHeight)
135 mSubstituteGlyphInfo = &glyphInfo;
150 return mDefaultHeight;