From 68b82e6d6133c8213cdad09b240d7a69227cc82a Mon Sep 17 00:00:00 2001 From: Richard Dushime <45734838+richarddushime@users.noreply.github.com> Date: Fri, 15 Mar 2024 01:03:22 -0400 Subject: [PATCH] fonts: Add Noto Sans CJK fonts to the Linux fallback list (#31668) * Add Noto Sans CJK fonts to the fallback list * Fix test-tidy errors --- components/gfx/platform/freetype/font_list.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/gfx/platform/freetype/font_list.rs b/components/gfx/platform/freetype/font_list.rs index bd1df3661e9..4f17d0bd1b2 100644 --- a/components/gfx/platform/freetype/font_list.rs +++ b/components/gfx/platform/freetype/font_list.rs @@ -166,6 +166,16 @@ pub fn fallback_font_families(codepoint: Option) -> Vec<&'static str> { families.push("Droid Sans Fallback"); families.push("WenQuanYi Micro Hei"); families.push("NanumGothic"); + families.push("Noto Sans CJK HK"); + families.push("Noto Sans CJK JP"); + families.push("Noto Sans CJK KR"); + families.push("Noto Sans CJK SC"); + families.push("Noto Sans CJK TC"); + families.push("Noto Sans HK"); + families.push("Noto Sans JP"); + families.push("Noto Sans KR"); + families.push("Noto Sans SC"); + families.push("Noto Sans TC"); } }