ImGui::DragFloat("font scale",&font->Scale,0.005f,0.3f,2.0f,"%.1f");// scale only this font
ImGui::DragFloat("Font scale",&font->Scale,0.005f,0.3f,2.0f,"%.1f");// Scale only this font
ImGui::SameLine();ShowHelpMarker("Note than the default embedded font is NOT meant to be scaled.\n\nFont are currently rendered into bitmaps at a given size at the time of building the atlas. You may oversample them to get some flexibility with scaling. You can also render at multiple sizes and select which one to use at runtime.\n\n(Glimmer of hope: the atlas system should hopefully be rewritten in the future to make scaling more natural and automatic.)");
// Display all glyphs of the fonts in separate pages of 256 characters
constImFont::Glyph*glyph_fallback=font->FallbackGlyph;// Forcefully/dodgily make FindGlyph() return NULL on fallback, which isn't the default behavior.
font->RenderChar(draw_list,cell_size.x,cell_p1,ImGui::GetColorU32(ImGuiCol_Text),(ImWchar)(base+n));// We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions available to generate a string.