font formats: comments are specs only

This commit is contained in:
4DBug committed 2026-11-01 01:52:57 -05:00
1 parent 0452f26eef
commit d91dc6c597
14 files changed
+64 -167

No files matched your search

+5 -8
View File
@@ -1,10 +1,7 @@
--!strict
-- font/eot: Embedded OpenType (.eot; versions 0x00010000, 0x00020001 and 0x00020002): the EOT header (PANOSE, charset,
-- weight, fsType, Unicode / code page ranges, family / style / version / full names, the root string, EUDC data) and
-- the font data inside, XOR-0x50 obfuscated or not, read as the standard Font through codecs/font/TrueType (meta.eot
-- holds the header fields, meta.fontData the TrueType bytes). Writes EOT 2.1 around TrueType bytes (a buffer / string,
-- or a Font read from an EOT), filling the header from the font's OS/2, head and name tables. Written from the W3C
-- EOT submission (2008). Not supported: MicroType Express compressed fonts (flag 0x4: Err.UNSUPPORTED), signatures.
-- font/eot: Embedded OpenType (versions 0x00010000, 0x00020001, 0x00020002; W3C EOT submission, 2008): the header
-- and the font data (XOR-0x50 obfuscated or not) through codecs/font/TrueType; writes EOT 2.1 around TrueType bytes.
-- Not supported: MicroType Express compression (flag 0x4: Err.UNSUPPORTED), signatures.
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -24,8 +21,8 @@ local Eot = {
export type DecodeOptions = {}
export type EncodeOptions = {
xor: boolean?, -- obfuscate the font data with XOR 0x50 (default false)
rootString: string?, -- the URLs allowed to use the font (default "")
xor: boolean?, -- XOR 0x50; default false
rootString: string?, -- default ""
}
-- ------------------------------------------------------------------------------------------------ constants