diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-08-22 20:46:25 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-08-22 21:01:22 +0300 |
commit | 1c5a50fac6346863f09181e7ee2cd0270ab4fda7 (patch) | |
tree | 955be40d4b7057ec78927b3723a18c808bcf067d /modules/text_server_fb | |
parent | 1fbf7b1ba5f8d498d199793fca179b9e3cd3c7bd (diff) |
Fix color modulation of the grayscale glyphs in font with mixed color / grayscale data.
Diffstat (limited to 'modules/text_server_fb')
-rw-r--r-- | modules/text_server_fb/text_server_fb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/text_server_fb/text_server_fb.cpp b/modules/text_server_fb/text_server_fb.cpp index 3b91c6981e..3f5041234c 100644 --- a/modules/text_server_fb/text_server_fb.cpp +++ b/modules/text_server_fb/text_server_fb.cpp @@ -2122,7 +2122,7 @@ void TextServerFallback::font_draw_glyph(const RID &p_font_rid, const RID &p_can if (gl.texture_idx != -1) { Color modulate = p_color; #ifdef MODULE_FREETYPE_ENABLED - if (fd->cache[size]->face && FT_HAS_COLOR(fd->cache[size]->face)) { + if (fd->cache[size]->face && fd->cache[size]->textures[gl.texture_idx].format == Image::FORMAT_RGBA8) { modulate.r = modulate.g = modulate.b = 1.0; } #endif |