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

This commit is contained in:
rdb 2024-11-07 11:34:02 +01:00
parent 16431748de
commit a6a386aab3
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ make_glyph(int character, FT_Face face, int glyph_index) {
if (_render_mode == RM_texture) {
// Render the glyph if necessary.
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;