summaryrefslogtreecommitdiff
path: root/mktests
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-01-03 13:53:23 -0800
committerPhilipp Gesang <phg42.2a@gmail.com>2014-01-03 13:53:23 -0800
commit70e80bb79416b0089ea9ee5f01a11be34bef251c (patch)
treef58776f8e9e616553e18198d3a4e62c87c6feeef /mktests
parent61e48b2eb03f98ea6335730e5c9cf0a6f4462c44 (diff)
parentbb99e2c94aaa32cb3635ec6e35a4dc8ca6e309ae (diff)
downloadluaotfload-70e80bb79416b0089ea9ee5f01a11be34bef251c.tar.gz
Merge pull request #167 from phi-gamma/master
fixes to 2.4
Diffstat (limited to 'mktests')
-rwxr-xr-xmktests24
1 files changed, 24 insertions, 0 deletions
diff --git a/mktests b/mktests
index 688e5f8..baa710c 100755
--- a/mktests
+++ b/mktests
@@ -86,6 +86,11 @@ local infer_regular_style = {
{ "Garamond Premier Pro", "GaramondPremrPro.otf" },
{ "CMU Serif", "cmunrm.otf" },
{ "CMU Sans Serif", "cmunss.otf" },
+ { "Minion Pro", "MinionPro_Regular.otf" },
+ --- Below test will succeed only if we match for the
+ --- splainname (= sanitized tfmdata.fullname) field
+ --- explicitly.
+ { "Minion Pro Italic", "MinionPro_It.otf" },
}
local choose_optical_size = {
@@ -120,6 +125,25 @@ local choose_style = {
{ { name = "CMU Sans Serif", style = "italic" }, "cmunsi.otf" }, -- no “italic” but “oblique”
{ { name = "CMU Sans Serif", style = "bold" }, "cmunsx.otf" },
{ { name = "CMU Sans Serif", style = "bolditalic" }, "cmunso.otf" },
+ --[[--
+ Minion Pro Italic is exceptionally weird regarding identifiers in
+ that the postscript fontname and both info.fontname and
+ info.fullname are given as “minionproit”. Now its english fullname
+ (field 18) is “minionproital”. Only the value “fullname” in the root of
+ the tfmdata structure (not the one returned by fontloader.info()!)
+ accurately yields “Minion Pro Italic”.
+
+ To complete the picture, the file naming isn’t very consistent either:
+ we find the suffixes “Regular” and “Bold”, but “It” and “BoldIt”. What
+ the hell were the designers smoking?
+
+ Also, the full Minion Pro set comes with different optical sizes which
+ for monetary reasons cannot considered here.
+ --]]--
+ { { name = "Minion Pro", style = "regular" }, "MinionPro_Regular.otf" },
+ { { name = "Minion Pro", style = "italic" }, "MinionPro_It.otf" },
+ { { name = "Minion Pro", style = "bold" }, "MinionPro_Bold.otf" },
+ { { name = "Minion Pro", style = "bolditalic" }, "MinionPro_BoldIt.otf" },
}
--- this needs a database built with --formats=+pfa,pfb,afm