瀏覽代碼

[3.2] Fix fallback emoji font color.

bruvzg 4 年之前
父節點
當前提交
1b4fab3318
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/resources/dynamic_font.cpp

+ 1 - 1
scene/resources/dynamic_font.cpp

@@ -326,7 +326,7 @@ float DynamicFontAtSize::draw_char(RID p_canvas_item, const Point2 &p_pos, CharT
 			cpos.y -= font->get_ascent();
 			cpos.y += ch->v_align;
 			Color modulate = p_modulate;
-			if (FT_HAS_COLOR(face)) {
+			if (FT_HAS_COLOR(font->face)) {
 				modulate.r = modulate.g = modulate.b = 1.0;
 			}
 			RID texture = font->textures[ch->texture_idx].texture->get_rid();