[lltx] TL2016's luaotfload seemingly unable to access subfonts in either .ttc collections or .dfont suitcases
Bruno Voisin
bvoisin at icloud.com
Mon Apr 18 20:10:00 CEST 2016
Hello,
Trying the brand new LuaTeX and luaotfload in TeX Live 2016 on the Mac (using mactex-20160417.pkg from tlpretest), and after blacklisting LastResort.ttf as documented in various places, it seems luaotfload-tool cannot analyze properly the various subfonts in .ttc collections or .dfont suitcases, getting for all these subfonts the data for subfont 0.
For example here is what luaotfload-names.lua.gz in TeX Live 2016 (actually ~/Library/texlive/2016/texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz) contains for Times.dfont
{
["basename"]="Times.dfont",
["familyname"]="times",
["fontname"]="timesroman",
["format"]="dfont",
["fullname"]="timesroman",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2020,
["italicangle"]=0,
["location"]="system",
["plainname"]="Times Roman",
["psname"]="timesroman",
["size"]=false,
["splainname"]="timesroman",
["splitstyle"]="roman",
["subfamily"]="regular",
["subfont"]=0,
["version"]="10.0d1e3",
["weight"]=0,
},
{
["basename"]="Times.dfont",
["conflicts"]={
["barename"]=2020,
["basename"]=2020,
},
["familyname"]="times",
["fontname"]="timesroman",
["format"]="dfont",
["fullname"]="timesroman",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2021,
["italicangle"]=0,
["location"]="system",
["plainname"]="Times Roman",
["psname"]="timesroman",
["size"]=false,
["splainname"]="timesroman",
["splitstyle"]="roman",
["subfamily"]="regular",
["subfont"]=1,
["version"]="10.0d1e3",
["weight"]=0,
},
{
["basename"]="Times.dfont",
["conflicts"]={
["barename"]=2020,
["basename"]=2020,
},
["familyname"]="times",
["fontname"]="timesroman",
["format"]="dfont",
["fullname"]="timesroman",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2022,
["italicangle"]=0,
["location"]="system",
["plainname"]="Times Roman",
["psname"]="timesroman",
["size"]=false,
["splainname"]="timesroman",
["splitstyle"]="roman",
["subfamily"]="regular",
["subfont"]=2,
["version"]="10.0d1e3",
["weight"]=0,
},
{
["basename"]="Times.dfont",
["conflicts"]={
["barename"]=2020,
["basename"]=2020,
},
["familyname"]="times",
["fontname"]="timesroman",
["format"]="dfont",
["fullname"]="timesroman",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2023,
["italicangle"]=0,
["location"]="system",
["plainname"]="Times Roman",
["psname"]="timesroman",
["size"]=false,
["splainname"]="timesroman",
["splitstyle"]="roman",
["subfamily"]="regular",
["subfont"]=3,
["version"]="10.0d1e3",
["weight"]=0,
},
and here is what it contained for TeX Live 2015
{
["basename"]="Times.dfont",
["familyname"]="times",
["fontname"]="timesroman",
["format"]="dfont",
["fullname"]="timesroman",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2012,
["italicangle"]=0,
["location"]="system",
["plainname"]="Times Roman",
["psname"]="timesroman",
["size"]=false,
["splainname"]="timesroman",
["splitstyle"]="roman",
["subfamily"]="regular",
["subfont"]=0,
["version"]="10.0d1e3",
["weight"]=0,
},
{
["basename"]="Times.dfont",
["conflicts"]={
["barename"]=2012,
["basename"]=2012,
},
["familyname"]="times",
["fontname"]="timesbold",
["format"]="dfont",
["fullname"]="timesbold",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2013,
["italicangle"]=0,
["location"]="system",
["plainname"]="Times Bold",
["psname"]="timesbold",
["size"]=false,
["splainname"]="timesbold",
["splitstyle"]="bold",
["subfamily"]="bold",
["subfont"]=1,
["version"]="10.0d1e3",
["weight"]=0,
},
{
["basename"]="Times.dfont",
["conflicts"]={
["barename"]=2012,
["basename"]=2012,
},
["familyname"]="times",
["fontname"]="timesitalic",
["format"]="dfont",
["fullname"]="timesitalic",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2014,
["italicangle"]=-15,
["location"]="system",
["plainname"]="Times Italic",
["psname"]="timesitalic",
["size"]=false,
["splainname"]="timesitalic",
["splitstyle"]="italic",
["subfamily"]="italic",
["subfont"]=2,
["version"]="10.0d1e3",
["weight"]=0,
},
{
["basename"]="Times.dfont",
["conflicts"]={
["barename"]=2012,
["basename"]=2012,
},
["familyname"]="times",
["fontname"]="timesbolditalic",
["format"]="dfont",
["fullname"]="timesbolditalic",
["fullpath"]="/System/Library/Fonts/Times.dfont",
["index"]=2015,
["italicangle"]=-15,
["location"]="system",
["plainname"]="Times Bold Italic",
["psname"]="timesbolditalic",
["size"]=false,
["splainname"]="timesbolditalic",
["splitstyle"]="bolditalic",
["subfamily"]="bolditalic",
["subfont"]=3,
["version"]="10.0d1e3",
["weight"]=0,
},
In case that helps, the above was obtained when typesetting a test file calling and displaying samples for all the built-in fonts of OS X El Capitan (ie 10.11), visible or invisible. The files and output for MacTeX 2015 and 2016 (44 MB zipped) are at
http://servbox.legi.grenoble-inp.fr/file.php?h=Rb28ade446b010a20f1989cd803969e3f
The fonts are loaded directly with the \font primitive in plain LuaTeX (and XeTeX for comparison).
Bruno Voisin
(from the MacTeX technical group)
More information about the lualatex-dev
mailing list