Lines Matching refs:src_tmp

1809         ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
1814 src_tmp.DstIndex = -1;
1815 for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++)
1817 src_tmp.DstIndex = output_i;
1818 IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array?
1819 if (src_tmp.DstIndex == -1)
1825 if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset))
1829 ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex];
1830 src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault();
1831 for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2)
1832 src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]);
1834 dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest);
1841 ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
1842 ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex];
1844 src_tmp.GlyphsSet.Resize(src_tmp.GlyphsHighest + 1);
1848 for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2)
1853 if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font?
1857 src_tmp.GlyphsCount++;
1859 src_tmp.GlyphsSet.SetBit(codepoint, true);
1869 ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
1870 src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount);
1871 UnpackBoolVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList);
1872 src_tmp.GlyphsSet.Clear();
1873 IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount);
1894 ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
1895 if (src_tmp.GlyphsCount == 0)
1898 src_tmp.Rects = &buf_rects[buf_rects_out_n];
1899 src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n];
1900 buf_rects_out_n += src_tmp.GlyphsCount;
1901 buf_packedchars_out_n += src_tmp.GlyphsCount;
1905 src_tmp.PackRange.font_size = cfg.SizePixels;
1906 src_tmp.PackRange.first_unicode_codepoint_in_range = 0;
1907 src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data;
1908 src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size;
1909 src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars;
1910 src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH;
1911 src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV;
1914 const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels);
1916 for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++)
1919 const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]);
1921 stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1);
1922 src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1);
1923 src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1);
1924 total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h;
1948 ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
1949 if (src_tmp.GlyphsCount == 0)
1952 stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount);
1956 for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++)
1957 if (src_tmp.Rects[glyph_i].was_packed)
1958 atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h);
1973 ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
1974 if (src_tmp.GlyphsCount == 0)
1977 stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects);
1984 stbrp_rect* r = &src_tmp.Rects[0];
1985 for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++)
1989 src_tmp.Rects = NULL;
1999 ImFontBuildSrcData& src_tmp = src_tmp_array[src_i];
2000 if (src_tmp.GlyphsCount == 0)
2006 const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels);
2008 stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap);
2016 for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++)
2018 const int codepoint = src_tmp.GlyphsList[glyph_i];
2019 const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i];
2030 stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &dummy_x, &dummy_y, &q, 0);