stb
stb copied to clipboard
stb single-file public domain libraries for C/C++
**Describe the bug** There are tons of errors related to declaration shadows a local variable like this one: `error: declaration shadows a local variable [-Werror,-Wshadow] int z = get8_packet_raw(f);` **To...
The following gets written to the console after calling stbi_load: Assertion failed: info.offset == s->callback_already_read + (int) (s->img_buffer - s->img_buffer_original) stb_image.h, line 5397 Here is the BMP that triggers the...
**I'd like to work with the TTF engine on platforms with less RAM than the TTF file is in size.** This header assumes gobs of memory, because it's geared for...
my code function get_glyph_index2(...) #define BYTE_( p, i ) ( ((const unsigned char*)(p))[(i)] ) #define BYTE_U16( p, i, s1 ) ( (uint16_t)( BYTE_( p, i ) ) 8); unsigned char*...
There is an infinite loop in the formatting of leading zeroes in float conversion: `while (tz) { stbsp__int32 i; stbsp__cb_buf_clamp(i, tz); tz -= i; while (i) { if ((((stbsp__uintptr)bf) &...
The function `void *stbi__load_main` calls `test()` functions for each image format. If the function succeeds, then it accepts that it is the proper image format and calls the corresponding loader...
### Discussed in https://github.com/nothings/stb/discussions/1282 Originally posted by **Jony01** January 31, 2022 I've trouble with initialisation of some fonts by function `stbtt_InitFont` which return zero List of unopenable font on my...
hi, i found stbir_resize_uint8_srgb decode srgb image to linear space before process, but when process done, data don't encode back to srgb color space. I think there should exist one...
Hello! I have been unsuccesful in making stb_resize handle my alpha channel correctly when generating mipmaps for my textures. I am unable to make stb_resize treat the alpha channel as...