mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Examples: Simplified font examples comments.
This commit is contained in:
		| @@ -22,12 +22,12 @@ int main(int, char**) | ||||
|     // Setup ImGui binding | ||||
|     ImGui_ImplGlfw_Init(window, true); | ||||
|     //ImGuiIO& io = ImGui::GetIO(); | ||||
|     //ImFont* my_font0 = io.Fonts->AddFontDefault(); | ||||
|     //ImFont* my_font1 = io.Fonts->AddFontFromFileTTF("../../extra_fonts/DroidSans.ttf", 16.0f); | ||||
|     //ImFont* my_font2 = io.Fonts->AddFontFromFileTTF("../../extra_fonts/Karla-Regular.ttf", 16.0f); | ||||
|     //ImFont* my_font3 = io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyClean.ttf", 13.0f); my_font3->DisplayOffset.y += 1; | ||||
|     //ImFont* my_font4 = io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyTiny.ttf", 10.0f); my_font4->DisplayOffset.y += 1; | ||||
|     //ImFont* my_font5 = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese()); | ||||
|     //io.Fonts->AddFontDefault(); | ||||
|     //io.Fonts->AddFontFromFileTTF("../../extra_fonts/DroidSans.ttf", 16.0f); | ||||
|     //io.Fonts->AddFontFromFileTTF("../../extra_fonts/Karla-Regular.ttf", 16.0f); | ||||
|     //io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyClean.ttf", 13.0f); | ||||
|     //io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyTiny.ttf", 10.0f); | ||||
|     //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); | ||||
|  | ||||
|     bool show_test_window = true; | ||||
|     bool show_another_window = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut