mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 17:21:51 +00:00
绘制中文的ts接口ttf文件替换
Signed-off-by: zhangchao <zhangchao345@huawei.com>
This commit is contained in:
parent
e62f08e63c
commit
13355fc20e
@ -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> typeface) : m_typeface(typeface) {};
|
||||
~JsTypeface();
|
||||
|
@ -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<OHOS::Rosen::Drawing::Typeface> g_LoadZhCnTypeface()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user