summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-11-15 21:47:45 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-11-15 21:47:45 +0100
commit4e3c25d0fa4ad115416c5004e0e544b2faf99788 (patch)
tree685513f5b2f84c7bad2b6bf83961b28fd00bbd07 /luaotfload-database.lua
parent581b68bbbc02f8497df63dcf87f4b091f83890e1 (diff)
downloadluaotfload-4e3c25d0fa4ad115416c5004e0e544b2faf99788.tar.gz
[fontloader] sync with Context as of 2013-11-15
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua17
1 files changed, 8 insertions, 9 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index fba01cc..bccfd7b 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -1349,6 +1349,7 @@ local get_english_names = function (names, basename)
local english_names
if names then
+ inspect(names)
for _, raw_namedata in next, names do
if raw_namedata.lang == "English (US)" then
english_names = raw_namedata.names
@@ -1369,8 +1370,6 @@ local organize_namedata = function (metadata,
english_names,
basename,
info)
-
- --print (english_names.family, "<>", english_names.preffamilyname)
local fontnames = {
--- see
--- https://developer.apple.com/fonts/TTRefMan/RM06/Chap6name.html
@@ -1385,18 +1384,18 @@ local organize_namedata = function (metadata,
--- non-abbreviated fashion, for most fonts at any rate.
--- However, in some fonts (e.g. CMU) all three fields are
--- identical.
- fullname = english_names.compatfull
- or english_names.fullname,
+ fullname = --[[ 18 ]] english_names.compatfull
+ or --[[ 4 ]] english_names.fullname,
--- we keep both the “preferred family” and the “family”
--- values around since both are valid but can turn out
--- quite differently, e.g. with Latin Modern:
--- preffamily: “Latin Modern Sans”,
--- family: “LM Sans 10”
- preffamily = english_names.preffamilyname,
- family = english_names.family,
- prefmodifiers = english_names.prefmodifiers,
- subfamily = english_names.subfamily,
- psname = english_names.postscriptname,
+ preffamily = --[[ 16 ]] english_names.preffamilyname,
+ family = --[[ 1 ]] english_names.family,
+ prefmodifiers = --[[ 17 ]] english_names.prefmodifiers,
+ subfamily = --[[ 2 ]] english_names.subfamily,
+ psname = --[[ 6 ]] english_names.postscriptname,
},
metadata = {