mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
Change NotoSansKR to NanumGothic for Korean font (#1957)
* Update Korean translation * 1. Fix blank button text after translation 2. Fix some mistranslated korean * -fix bottom surface in gcode viewer -update korean translation * - Fixed UI being broken 'cause "display" text size could not be calculated when cjk language is use * Change NotoSansKR to NanumGothic, which has a height similar to the main font.
This commit is contained in:
parent
9bf8cbc7de
commit
b50dfb69a2
7 changed files with 15 additions and 11 deletions
|
@ -2095,8 +2095,8 @@ void ImGuiWrapper::init_font(bool compress)
|
|||
auto font_name_regular = "HarmonyOS_Sans_SC_Regular.ttf";
|
||||
auto font_name_bold = "HarmonyOS_Sans_SC_Bold.ttf";
|
||||
if(m_glyph_ranges == ImGui::GetIO().Fonts->GetGlyphRangesKorean()) {
|
||||
font_name_regular = "NotoSansKR-Regular.otf";
|
||||
font_name_bold = "NotoSansKR-Bold.otf";
|
||||
font_name_regular = "NanumGothic-Regular.ttf";
|
||||
font_name_bold = "NanumGothic-Bold.ttf";
|
||||
}
|
||||
default_font = io.Fonts->AddFontFromFileTTF((Slic3r::resources_dir() + "/fonts/" + font_name_regular).c_str(), m_font_size, &cfg, ranges.Data);
|
||||
if (default_font == nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue