From 13355fc20e01ca7979a5a03c8e8aad231c4dbe84 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Mon, 6 May 2024 16:02:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=98=E5=88=B6=E4=B8=AD=E6=96=87=E7=9A=84ts?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3ttf=E6=96=87=E4=BB=B6=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangchao --- interfaces/kits/napi/graphic/drawing/font_napi/js_typeface.h | 2 +- .../drawing_ndk/drawing_utils/drawing_canvas_utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/napi/graphic/drawing/font_napi/js_typeface.h b/interfaces/kits/napi/graphic/drawing/font_napi/js_typeface.h index 4f487eb498..5a79d2a8f7 100644 --- a/interfaces/kits/napi/graphic/drawing/font_napi/js_typeface.h +++ b/interfaces/kits/napi/graphic/drawing/font_napi/js_typeface.h @@ -26,7 +26,7 @@ namespace OHOS::Rosen { namespace Drawing { class JsTypeface final { public: - static constexpr char ZH_CN_TTF[] = "/system/fonts/HarmonyOS_Sans_SC_Regular.ttf"; + static constexpr char ZH_CN_TTF[] = "/system/fonts/HarmonyOS_Sans_SC.ttf"; explicit JsTypeface(std::shared_ptr typeface) : m_typeface(typeface) {}; ~JsTypeface(); diff --git a/rosen/modules/2d_graphics/drawing_ndk/drawing_utils/drawing_canvas_utils.h b/rosen/modules/2d_graphics/drawing_ndk/drawing_utils/drawing_canvas_utils.h index c380083741..f35fd48b1e 100644 --- a/rosen/modules/2d_graphics/drawing_ndk/drawing_utils/drawing_canvas_utils.h +++ b/rosen/modules/2d_graphics/drawing_ndk/drawing_utils/drawing_canvas_utils.h @@ -33,7 +33,7 @@ public: }; // Default typeface does not support chinese characters, needs to load chinese character ttf file. -static constexpr char ZH_CN_TTF[] = "/system/fonts/HarmonyOS_Sans_SC_Regular.ttf"; +static constexpr char ZH_CN_TTF[] = "/system/fonts/HarmonyOS_Sans_SC.ttf"; inline std::shared_ptr g_LoadZhCnTypeface() {