ws-arch2: font/psf (PSF 1 / 2 read + write, Unicode tables kept on round trip, .psfu.gz via the api); Types.BitmapStrike.map (extra code points per glyph, additive)

This commit is contained in:
4DBug committed 2026-10-31 15:03:35 -05:00
1 parent 1b0bc158e8
commit 19f486031d
9 files changed
+545 -8

No files matched your search

+7
View File
@@ -109,6 +109,13 @@ function Bitmap.font(strike: Types.BitmapStrike, info: { [string]: any }?, meta:
index[cp] = i - 1
end
end
if strike.map then
for cp, g in strike.map do
if index[cp] == nil and g >= 0 and g < #strike.glyphs then
index[cp] = g
end
end
end
local f = setmetatable({
kind = "font",
info = info or {},