+9
日增长
+61
周增长
+192
月增长
35,037
stars
8,125
forks
624
watchers
882
prs
993
issues
0
releases
README
stb === single-file public domain (or MIT licensed) libraries for C/C++ Several projects have been moved to their own repositories: image resize: stb_image_resize sprintf: stb_sprintf This project discusses security-relevant bugs in public in Github Issues and Pull Requests, and it may take significant time for security fixes to be implemented or merged. If this poses an unreasonable risk to your project, do not use stb libraries. Noteworthy: image loader: stb_image.h image writer: stb_image_write.h font text rasterizer: stb_truetype.h typesafe C containers: stb_ds.h Most libraries by stb, except: stb_dxt by Fabian "ryg" Giesen library | latest version | category | LoC | description | last updated ---------- | -------------- | -------- | --- | ------------|--------------- stb_vorbis.c | 1.24 | audio | 5704 | decode ogg vorbis files from file/memory to float/16-bit signed output | 2026-11-12 stb_hexwave.h | 0.6 | audio | 680 | audio waveform synthesizer | 2026-11-08 stb_image.h | 2.32 | graphics | 7798 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR | 2026-11-12 stb_truetype.h | 1.28 | graphics | 5321 | parse, decode, and rasterize characters from truetype fonts | 2026-11-12 stb_image_write.h | 1.18 | graphics | 1924 | image writing to disk: PNG, JPG, BMP, TGA, HDR | 2026-11-12 stb_rect_pack.h | 1.02 | graphics | 628 | simple 2D rectangle packer with decent quality | 2026-11-08 stb_perlin.h | 0.6 | graphics | 517 | perlin's revised simplex noise w/ different seeds | 2026-11-08 stb_ds.h | 0.98 | utility | 1942 | typesafe dynamic array and hash tables for C, will compile in C++ | 2026-11-08 stb_textedit.h | 1.16 | user interface | 1480 | guts of a text editor for games etc implementing them from scratch | 2026-11-12 stb_voxel_render.h | 0.90 | 3D graphics | 3808 | Minecraft-esque voxel rendering "engine" with many more features | 2026-11-08 stb_dxt.h | 1.13 | 3D graphics | 721 | Fabian "ryg" Giesen's real-time DXT compressor | 2026-11-08 stb_easy_font.h | 1.2 | 3D graphics | 306 | quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc | 2026-11-08 stb_tilemap_editor.h | 0.43 | game dev | 4206 | embeddable tilemap editor | 2026-11-08 stb_herringbone_wa... | 0.7 | game dev | 1232 | herringbone Wang tile map generator | 2026-11-01 stb_c_lexer.h | 0.13 | parsing | 1068 | simplify writing parsers for C-like languages | 2026-11-11 stb_divide.h | 1.0 | math | 310 | more useful 32-bit modulus e.g. "euclidean divide" | 2026-11-08 stb_connected_comp... | 0.97 | misc | 1050 | incrementally compute reachability on grids | 2026-11-08 stb_leakcheck.h | 0.7 | misc | 206 | quick-and-dirty malloc/free leak-checking | 2026-11-08 stb_include.h | 0.3 | misc | 378 | implement recursive include support, particularly for GLSL | 2026-11-08 Total libraries: 19 Total lines of C code: 39279 FAQ --- What's the license? These libraries are in the public domain. You can do anythi
Top issues
#659SDF generation does not seem to work correctly for Noto fonts7 comments · 2018-09-18#889stbi_write_jpg / stbi_load incorrect channel count in monochrome images 6 comments · 2020-01-30#740Suggestion: add static code analysis6 comments · 2019-03-25#690stb_truetype: stbtt_InitFont missing parameter for size of "data"6 comments · 2019-01-04#478stb_vorbis: Add I/O callback support6 comments · 2017-07-22#227stb_image supported 16-bpc file formats should support float/HDR path5 comments · 2016-01-22#25Convert stb_vorbis to a header only library [FEATURE REQUEST]5 comments · 2014-07-12#1997stb_truetype: Support lookupType 9 table in `stbtt__GetGlyphGPOSInfoAdvance`4 comments · 2026-09-07
Discussions
#1986GNU compiler warning0 comments · 2026-08-10#1945stb_image: Support for POWER SIMD2 comments · 2026-05-04#1910Confusion with stbtt_GetFontBoundingBox functionality or documentation1 comments · 2026-03-10#1864How to handle transparent layer?1 comments · 2025-12-12#1842`stbi_write_png()` function subtleties when writing a file1 comments · 2025-09-29#1840stbi_load an image, then write it back out generates access violation1 comments · 2025-09-24#1835STBI not loading image despite giving the right directory for absolutely no reason7 comments · 2025-09-01#1826Expected range for stb_perlin_fbm_noise34 comments · 2025-08-03