Browse Source

Use DynamicTextGlyph for spaces (fixes glyph.is_whitespace())

rdb 10 years ago
parent
commit
fb0902512e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/text/dynamicTextFont.cxx

+ 1 - 1
panda/src/text/dynamicTextFont.cxx

@@ -555,7 +555,7 @@ make_glyph(int character, FT_Face face, int glyph_index) {
     // If we got an empty bitmap, it's a special case.
     // If we got an empty bitmap, it's a special case.
 
 
     PT(TextGlyph) glyph =
     PT(TextGlyph) glyph =
-      new TextGlyph(character, advance);
+      new DynamicTextGlyph(character, advance);
     _empty_glyphs.push_back(glyph);
     _empty_glyphs.push_back(glyph);
     return glyph;
     return glyph;