|
@@ -39,14 +39,17 @@ int main(int, char**)
|
|
|
// - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering.
|
|
|
// - Read 'docs/FONTS.md' for more instructions and details.
|
|
|
// - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ !
|
|
|
- //io.Fonts->AddFontDefault();
|
|
|
+ io.Fonts->AddFontDefault();
|
|
|
//io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\segoeui.ttf", 18.0f);
|
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f);
|
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f);
|
|
|
//io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f);
|
|
|
- //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese());
|
|
|
- //IM_ASSERT(font != nullptr);
|
|
|
+ ImFont* font = io.Fonts->AddFontFromFileTTF("resources/driusstraight.ttf", 18.0f, nullptr, io.Fonts->GetGlyphRangesJapanese());
|
|
|
+ IM_ASSERT(font != nullptr);
|
|
|
|
|
|
+ // required to be called to cache the font texture with raylib
|
|
|
+ Imgui_ImplRaylib_BuildFontAtlas();
|
|
|
+
|
|
|
// Our state
|
|
|
bool show_demo_window = true;
|
|
|
bool show_another_window = false;
|