Lines Matching defs:glyph
15 // [SECTION] ImFontAtlas glyph ranges helpers
2027 // Register glyph
2198 // [SECTION] ImFontAtlas glyph ranges helpers
2446 // Create a glyph to handle TAB
2487 ImFontGlyph& glyph = Glyphs.back();
2488 glyph.Codepoint = (ImWchar)codepoint;
2489 glyph.X0 = x0;
2490 glyph.Y0 = y0;
2491 glyph.X1 = x1;
2492 glyph.Y1 = y1;
2493 glyph.U0 = u0;
2494 glyph.V0 = v0;
2495 glyph.U1 = u1;
2496 glyph.V1 = v1;
2497 glyph.AdvanceX = advance_x + ConfigData->GlyphExtraSpacing.x; // Bake spacing into AdvanceX
2500 glyph.AdvanceX = (float)(int)(glyph.AdvanceX + 0.5f);
2504 MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + 1.99f) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + 1.99f);
2739 if (const ImFontGlyph* glyph = FindGlyph(c))
2745 draw_list->PrimRectUV(ImVec2(pos.x + glyph->X0 * scale, pos.y + glyph->Y0 * scale), ImVec2(pos.x + glyph->X1 * scale, pos.y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col);
2860 if (const ImFontGlyph* glyph = FindGlyph((ImWchar)c))
2862 char_width = glyph->AdvanceX * scale;
2868 float x1 = x + glyph->X0 * scale;
2869 float x2 = x + glyph->X1 * scale;
2870 float y1 = y + glyph->Y0 * scale;
2871 float y2 = y + glyph->Y1 * scale;
2875 float u1 = glyph->U0;
2876 float v1 = glyph->V0;
2877 float u2 = glyph->U1;
2878 float v2 = glyph->V1;
3055 // FIXME: Rendering an ellipsis "..." is a surprisingly tricky problem for us... we cannot rely on font glyph having it,