library: vendors/stb_image + vendors/stb_truetype — stb ships with sx
The stb headers move from the repo-root vendors/ (resolvable only with CWD = sx repo) into library/vendors/ following the sqlite convention — bindings module + c/ sources + provenance README — so '#import "vendors/stb_image/stb_image.sx"' (image v2.30 + image_write v1.16) and '#import "vendors/stb_truetype/stb_truetype.sx"' (v1.26) work from any consumer via the stdlib search paths. modules/ffi/stb.sx dissolves into the stb_image vendor; modules/ffi/stb_truetype.sx keeps its non-stb text-shaping companions and re-imports the vendored unit. examples/1625 pins a deterministic in-memory BMP decode; examples/1626 pins font init + metric invariants against the system Helvetica.
This commit is contained in:
1
examples/expected/1625-vendor-stb-image-decode.exit
Normal file
1
examples/expected/1625-vendor-stb-image-decode.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
2
examples/expected/1625-vendor-stb-image-decode.stdout
Normal file
2
examples/expected/1625-vendor-stb-image-decode.stdout
Normal file
@@ -0,0 +1,2 @@
|
||||
decoded 2x2 (3 channels)
|
||||
top-left pixel: 0 0 255
|
||||
1
examples/expected/1626-vendor-stb-truetype-metrics.exit
Normal file
1
examples/expected/1626-vendor-stb-truetype-metrics.exit
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1,4 @@
|
||||
font offset >= 0: true
|
||||
init ok: true
|
||||
scale > 0: true
|
||||
ascent > 0, descent < 0: true true
|
||||
Reference in New Issue
Block a user