ENH: update jp and ko font
JIRA: STUDIO-8263 Change-Id: I521b15dd24d1625703dd2afe88430aa6e984d622 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
45caf3e930
commit
ec0226485d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -2402,7 +2402,7 @@ void ImGuiWrapper::init_font(bool compress)
|
|||
//FIXME replace with io.Fonts->AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, m_font_size, nullptr, ranges.Data);
|
||||
//https://github.com/ocornut/imgui/issues/220
|
||||
if (m_is_korean)
|
||||
default_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + "NotoSansKR-Regular.ttf").c_str(), m_font_size, &cfg, ranges.Data);
|
||||
default_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + "NanumGothic-Regular.ttf").c_str(), m_font_size, &cfg, ranges.Data);
|
||||
else
|
||||
default_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + "HarmonyOS_Sans_SC_Regular.ttf").c_str(), m_font_size, &cfg, ranges.Data);
|
||||
if (default_font == nullptr) {
|
||||
|
@ -2413,7 +2413,7 @@ void ImGuiWrapper::init_font(bool compress)
|
|||
}
|
||||
|
||||
if (m_is_korean)
|
||||
bold_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + "NotoSansKR-Bold.ttf").c_str(), m_font_size, &cfg, ranges.Data);
|
||||
bold_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + "NanumGothic-Bold.ttf").c_str(), m_font_size, &cfg, ranges.Data);
|
||||
else
|
||||
bold_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + "HarmonyOS_Sans_SC_Bold.ttf").c_str(), m_font_size, &cfg, ranges.Data);
|
||||
if (bold_font == nullptr) {
|
||||
|
|
|
@ -19,8 +19,11 @@ wxFont Label::sysFont(int size, bool bold, std::string lang_code)
|
|||
|
||||
wxString face;
|
||||
if (lang_code == "ja") {
|
||||
face = wxString::FromUTF8("Noto Sans JP");
|
||||
} else {
|
||||
face = wxString::FromUTF8("Source Han Sans JP Normal");
|
||||
} else if (lang_code == "ko") {
|
||||
face = wxString::FromUTF8("NanumGothic");
|
||||
}
|
||||
else {
|
||||
face = wxString::FromUTF8("HarmonyOS Sans SC");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue