Browse Source

text: Fix text-native-antialias not properly taking effect

rdb 1 year ago
parent
commit
a6a386aab3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/text/dynamicTextFont.cxx

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

@@ -566,7 +566,7 @@ make_glyph(int character, FT_Face face, int glyph_index) {
   if (_render_mode == RM_texture) {
   if (_render_mode == RM_texture) {
     // Render the glyph if necessary.
     // Render the glyph if necessary.
     if (slot->format != ft_glyph_format_bitmap) {
     if (slot->format != ft_glyph_format_bitmap) {
-      FT_Render_Glyph(slot, ft_render_mode_normal);
+      FT_Render_Glyph(slot, _native_antialias ? ft_render_mode_normal : ft_render_mode_mono);
     }
     }
 
 
     tex_x_size = bitmap.width;
     tex_x_size = bitmap.width;