From 1c2d453e16c5f5289fa76fb21af4da82f50390a1 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 9 May 2013 23:26:31 +0200 Subject: add glyph fallbacks from Context --- mkglyphlist | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mkglyphlist') diff --git a/mkglyphlist b/mkglyphlist index 3366c9c..94aac39 100755 --- a/mkglyphlist +++ b/mkglyphlist @@ -20,6 +20,21 @@ local glyphfile = "./glyphlist.txt" local font_age = "./luaotfload-glyphlist.lua" local glyph_source = "http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt" +----------------------------------------------------------------------- +-- fallbacks +----------------------------------------------------------------------- +--- Hans adds a small list of mappings that are not in the original +--- glyph list but seem to be normalizations of some sort. I trust his +--- experience, so I’ll just include them here. Background: +--- http://www.ntg.nl/pipermail/ntg-context/2013/073089.html + +local fallbacks = { + ["SF10000"]=9484, ["SF20000"]=9492, ["SF30000"]=9488, + ["SF40000"]=9496, ["SF50000"]=9532, ["SF60000"]=9516, + ["SF70000"]=9524, ["SF80000"]=9500, ["SF90000"]=9508, + ["afii208"]=8213, +} + ----------------------------------------------------------------------- -- includes ----------------------------------------------------------------------- @@ -73,6 +88,9 @@ local get_glyphs = function (data) print("error: could not parse glyph list") os.exit(-1) end + for name, glyph in next, fallbacks do + res[name] = res[name] or glyph + end return res end -- cgit v1.2.3