Lines Matching refs:data
20 // [SECTION] Default font data (ProggyClean.ttf)
112 #pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits]
351 // Const data
1613 void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0);
1614 if (!data)
1627 return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges);
1742 unsigned char* data = pixels + x + y * stride;
1743 for (int j = h; j > 0; j--, data += stride)
1745 data[i] = table[data[i]];
1748 // Temporary data for one source font (multiple source fonts can be merged into one destination ImFont)
1764 // Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont)
1806 // 1. Initialize font loading structure, check font data validity
1822 // Initialize helper structure for font loading and verify that the TTF/OTF data is correct
1837 // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs.
1879 // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0)
1939 // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values).
2127 // Render into our custom data block
2660 // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature.
2808 // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature.
3084 static void stb__match(const unsigned char *data, unsigned int length)
3089 if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; }
3090 while (length--) *stb__dout++ = *data++;
3093 static void stb__lit(const unsigned char *data, unsigned int length)
3097 if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; }
3098 memcpy(stb__dout, data, length);
3188 // [SECTION] Default font data (ProggyClean.ttf)