codecs/font: comments to specs only
This commit is contained in:
1 parent
878e1b3a44
commit
f1ad32105b
7 files changed
+52
-155
No files matched your search
@@ -1,12 +1,7 @@
|
||||
--!strict
|
||||
-- codecs/font/GlyphNames: PostScript glyph names -> Unicode for fonts that name their glyphs (Type 1, CFF without a
|
||||
-- cmap, PCF / BDF glyph names): the Adobe Glyph List For New Fonts (AGLFN 1.7, Adobe, BSD-3-Clause:
|
||||
-- licenses/agl-LICENSE.txt; the f-ligatures and dotlessj added), the uniXXXX / uXXXX[XX] conventions and
|
||||
-- name.suffix variants ("a.sc" -> a) per the AGL specification; and Adobe StandardEncoding (code -> glyph name).
|
||||
-- Generated once from fontTools.agl / fontTools.encodings.StandardEncoding.
|
||||
--
|
||||
-- GlyphNames.unicode("Aacute") -> 0xC1 GlyphNames.unicode("uni20AC") -> 0x20AC (nil when unknown)
|
||||
-- GlyphNames.STANDARD[65] -> "A" (StandardEncoding, codes 0..255; nil for .notdef)
|
||||
-- codecs/font/GlyphNames: PostScript glyph names -> Unicode (AGL specification) and Adobe StandardEncoding.
|
||||
-- Data: the Adobe Glyph List For New Fonts (AGLFN 1.7, BSD-3-Clause: licenses/agl-LICENSE.txt; the f-ligatures and
|
||||
-- dotlessj added) and StandardEncoding, generated from fontTools.agl / fontTools.encodings.StandardEncoding.
|
||||
local GlyphNames = {}
|
||||
|
||||
-- AGLFN: "name hex" pairs
|
||||
@@ -126,7 +121,6 @@ do
|
||||
end
|
||||
GlyphNames.STANDARD = STANDARD
|
||||
|
||||
-- unicode(name) -> the code point of a glyph name (the first one for ligature names like "f_i"), or nil
|
||||
function GlyphNames.unicode(name: string): number?
|
||||
local base = string.match(name, "^([^%.]+)") or name
|
||||
local t = byName or load()
|
||||
|
||||
Reference in new issue
Block a user