From 65f24e45ef9475e14425e2ca4daa42226e8d4015 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 10 Sep 2003 16:31:33 +0000 Subject: [PATCH] use load_glyph() defined in parent class --- panda/src/text/dynamicTextFont.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/panda/src/text/dynamicTextFont.cxx b/panda/src/text/dynamicTextFont.cxx index 0f00f46043..e907e35740 100644 --- a/panda/src/text/dynamicTextFont.cxx +++ b/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; }