ImGui 显示简体中文

加载中文字体

io.Fonts>AddFontFromFileTTF("c:/windows/Fonts/simhei.ttf", 13.0f, NULL, io.Fonts->GetGlyphRangesChineseSimplifiedCommon());

在要显示的文字前加 u8

ImGui::Text(u8"你好, 简体中文");
posted @ 2023-04-18 17:42  无形深空  阅读(1353)  评论(0编辑  收藏  举报