Lines Matching defs:data
21 // [SECTION] Default font data (ProggyClean.ttf)
112 #pragma warning (disable: 6385) // (stb_truetype) Reading invalid data from 'buffer': the readable size is '_Old_3`kernel_width' bytes, but '3' bytes may be read.
126 #pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits]
624 // You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or
2141 void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0);
2142 if (!data)
2155 return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges);
2262 // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which
2264 // using a hot-reloading scheme that messes up static data, store your own instance of ImFontBuilderIO somewhere
2293 unsigned char* data = pixels + x + y * stride;
2294 for (int j = h; j > 0; j--, data += stride)
2296 data[i] = table[data[i]];
2300 // Temporary data for one source font (multiple source fonts can be merged into one destination ImFont)
2316 // Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont)
2358 // 1. Initialize font loading structure, check font data validity
2375 // Initialize helper structure for font loading and verify that the TTF/OTF data is correct
2390 // 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.
2430 // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0)
2490 // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values).
2775 // Render into our custom data blocks
3443 // 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.
3595 // 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.
3970 static void stb__match(const unsigned char *data, unsigned int length)
3975 if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; }
3976 while (length--) *stb__dout++ = *data++;
3979 static void stb__lit(const unsigned char *data, unsigned int length)
3983 if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; }
3984 memcpy(stb__dout, data, length);
4073 // [SECTION] Default font data (ProggyClean.ttf)