Skip to content

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Jan 16, 2024
1 parent 4f21e2b commit 3f04f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AdTree/viewer_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace easy3d {
io.Fonts->Clear();
io.Fonts->AddFontFromMemoryCompressedTTF(droid_sans_compressed_data, droid_sans_compressed_size, static_cast<float>(font_size * dpi_scaling()));

// If you want to show other languages, e.g., Chinese, you first need to use a TTF font file that support Chinese. You can replace the above line by:
// If you want to show other languages, e.g., Chinese, you first need to use a TTF font file that supports Chinese. You can replace the above line by:
// io.Fonts->AddFontFromFileTTF("/Users/lnan/Documents/Projects/Easy3D/resources/fonts/cn_Mao.ttf", static_cast<float>(font_size * dpi_scaling()), nullptr, io.Fonts->GetGlyphRangesChineseSimplifiedCommon());
// Then input the Chinese characters like: (const char*)u8"你好". You can define a macro to make it simpler, e.g.,
// #define _S(_LITERAL) (const char*)u8##_LITERAL
Expand Down

0 comments on commit 3f04f16

Please sign in to comment.