Realized while writing the docs that I need to preseve non-visible glyphs in the shape. (Fixed some crashing as well)

So the shaper has been adjusted along with downstream codepaths in drawlist gen pass.
This commit is contained in:
2025-01-11 20:38:43 -05:00
parent f7e4278300
commit 046c69c477
5 changed files with 110 additions and 69 deletions

View File

@@ -74,7 +74,9 @@ parser_stbtt_allocator_proc :: proc(
assert(error == .None)
if type == .Alloc || type == .Resize {
return transmute(rawptr) & result[0]
raw := transmute(Raw_Slice) result
// assert(raw.len > 0, "Allocation is 0 bytes?")
return transmute(rawptr) raw.data
}
else do return nil
}