浏览代码

use load_glyph() defined in parent class

David Rose 22 年之前
父节点
当前提交
65f24e45ef
共有 1 个文件被更改,包括 1 次插入4 次删除
  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;
   }