ws-arch: font/woff and font/woff2 (glyf/loca/hmtx transforms) with tests: identical glyphs to the sfnt
This commit is contained in:
1 parent
e7037cced1
commit
64dc0aa7f5
9 files changed
+964
-2
No files matched your search
@@ -38,6 +38,30 @@ local list: { Entry } = {
|
||||
return require("@formats/font/ttf")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "woff",
|
||||
category = "font",
|
||||
path = "font/woff",
|
||||
extensions = { "woff" },
|
||||
mime = { "font/woff" },
|
||||
deps = { "core/Err", "core/Bytes", "codecs/Deflate", "codecs/TrueType" },
|
||||
caps = { decode = true, encode = false, outlines = { "truetype", "cff" } },
|
||||
load = function()
|
||||
return require("@formats/font/woff")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "woff2",
|
||||
category = "font",
|
||||
path = "font/woff2",
|
||||
extensions = { "woff2" },
|
||||
mime = { "font/woff2" },
|
||||
deps = { "core/Err", "core/Bytes", "codecs/TrueType", "codecs/Brotli" },
|
||||
caps = { decode = true, encode = false, outlines = { "truetype", "cff" }, transforms = { "glyf", "loca", "hmtx" } },
|
||||
load = function()
|
||||
return require("@formats/font/woff2")
|
||||
end,
|
||||
},
|
||||
{
|
||||
name = "7z",
|
||||
category = "archive",
|
||||
|
||||
Reference in new issue
Block a user