Browse Source

use load_glyph() defined in parent class

David Rose 22 years ago
parent
commit
65f24e45ef
1 changed files with 1 additions and 4 deletions
  1. 1 4
      panda/src/text/dynamicTextFont.cxx

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

@@ -308,10 +308,7 @@ update_filters() {
 ////////////////////////////////////////////////////////////////////
 DynamicTextGlyph *DynamicTextFont::
 make_glyph(int glyph_index) {
-  int error = FT_Load_Glyph(_face, glyph_index, FT_LOAD_RENDER);
-  if (error) {
-    text_cat.error()
-      << "Unable to render glyph " << glyph_index << "\n";
+  if (!load_glyph(glyph_index)) {
     return (DynamicTextGlyph *)NULL;
   }