mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Demo: Display extra info from ImFontConfig in the font display
This commit is contained in:
		@@ -246,7 +246,10 @@ void ImGui::ShowTestWindow(bool* p_opened)
 | 
				
			|||||||
                    ImGui::Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent);
 | 
					                    ImGui::Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent);
 | 
				
			||||||
                    ImGui::Text("Fallback character: '%c' (%d)", font->FallbackChar, font->FallbackChar);
 | 
					                    ImGui::Text("Fallback character: '%c' (%d)", font->FallbackChar, font->FallbackChar);
 | 
				
			||||||
                    for (int config_i = 0; config_i < font->ConfigDataCount; config_i++)
 | 
					                    for (int config_i = 0; config_i < font->ConfigDataCount; config_i++)
 | 
				
			||||||
                        ImGui::BulletText("Input %d: \'%s\'", config_i, font->ConfigData[config_i].Name);
 | 
					                    {
 | 
				
			||||||
 | 
					                        ImFontConfig* cfg = &font->ConfigData[config_i];
 | 
				
			||||||
 | 
					                        ImGui::BulletText("Input %d: \'%s\'\nOversample: (%d,%d), PixelSnapH: %d", config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                    ImGui::TreePop();
 | 
					                    ImGui::TreePop();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                ImGui::TreePop();
 | 
					                ImGui::TreePop();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user