|
@@ -164,14 +164,16 @@ write(ostream &out, int indent_level) const {
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
bool StaticTextFont::
|
|
bool StaticTextFont::
|
|
|
get_glyph(int character, const TextGlyph *&glyph, float &glyph_scale) {
|
|
get_glyph(int character, const TextGlyph *&glyph, float &glyph_scale) {
|
|
|
|
|
+ glyph_scale = 1.0f;
|
|
|
|
|
+
|
|
|
Glyphs::const_iterator gi = _glyphs.find(character);
|
|
Glyphs::const_iterator gi = _glyphs.find(character);
|
|
|
if (gi == _glyphs.end()) {
|
|
if (gi == _glyphs.end()) {
|
|
|
// No definition for this character.
|
|
// No definition for this character.
|
|
|
|
|
+ glyph = (TextGlyph *)NULL;
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
glyph = (*gi).second;
|
|
glyph = (*gi).second;
|
|
|
- glyph_scale = 1.0f;
|
|
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|