ws-cleanup-types: TrueType names, mp3 index, aac options, imageops test: annotations
This commit is contained in:
1 parent
6a8a8abce2
commit
39dbde13b7
4 files changed
+6
-6
No files matched your search
@@ -452,7 +452,7 @@ local function macRoman(b: buffer, o: number, n: number): string
|
||||
return table.concat(out)
|
||||
end
|
||||
|
||||
local NAME_IDS = {
|
||||
local NAME_IDS: { [number]: string } = {
|
||||
[0] = "copyright",
|
||||
[1] = "family",
|
||||
[2] = "style",
|
||||
@@ -486,7 +486,7 @@ function Tables.names(b: buffer, o: number, n: number): { [string]: string }
|
||||
local len, off = u16(b, r + 8), u16(b, r + 10)
|
||||
local key = NAME_IDS[nid]
|
||||
if key and strings + off + len <= o + n then
|
||||
local rk, s = 0, nil
|
||||
local rk: number, s: string? = 0, nil
|
||||
if pid == 3 and (eid == 1 or eid == 10 or eid == 0) then
|
||||
rk = if lang == 0x409 then 4 else 2
|
||||
s = utf16be(b, strings + off, len)
|
||||
|
||||
Reference in new issue
Block a user