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