Using .ttc fonts with lua(la)tex in mactex 2010
I just decided to investigate this problem a bit deeper and finally found out that doing some manual changes in otfl-names.lua, enables me to use these fonts again. I tested it using "Hoefler Text.ttc". The entries in otfl-names.lua regarding hoefler text are: -------------------------------------------------------- { ["familyname"]="Hoefler Text", ["filename"]={ "Hoefler Text.ttc", 0 }, ... }, { ["familyname"]="Hoefler Text", ["filename"]={ "Hoefler Text.ttc", 1 }, ... }, { ["familyname"]="Hoefler Text", ["filename"]={ "Hoefler Text.ttc", 2 }, ... }, { ["familyname"]="Hoefler Text", ["filename"]={ "Hoefler Text.ttc", 3 }, ... }, -------------------------------------------------------- I added the actual path to the .ttc file and thus changed the entries to this: -------------------------------------------------------- { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 0 }, ... }, { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 1 }, ... }, { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 2 }, ... }, { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 3 }, ... }, -------------------------------------------------------- Doing these changes let me do the following in lualatex which didn't work before: \setmainfont[Ligatures=TeX]{Hoefler Text} I'm not a programmer so I'm not sure if the changes I did are actually safe to adopt but perhaps this can help someone to fix this issue in the repository so it will work in future versions of lua(la)tex. To be sure, I'll paste the non-shortened excerpt with the changes I did here: { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 0 }, ["fontname"]="HoeflerText-Regular", ["fullname"]="Hoefler Text", ["names"]={ ["family"]="Hoefler Text", ["fullname"]="Hoefler Text", ["psname"]="HoeflerText-Regular", ["subfamily"]="Regular", }, ["size"]={}, ["slant"]=0, ["weight"]=5, ["width"]=5, }, { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 1 }, ["fontname"]="HoeflerText-Black", ["fullname"]="Hoefler Text Black", ["names"]={ ["family"]="Hoefler Text", ["fullname"]="Hoefler Text Black", ["psname"]="HoeflerText-Black", ["subfamily"]="Black", }, ["size"]={}, ["slant"]=0, ["weight"]=7, ["width"]=5, }, { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 2 }, ["fontname"]="HoeflerText-Italic", ["fullname"]="Hoefler Text Italic", ["names"]={ ["family"]="Hoefler Text", ["fullname"]="Hoefler Text Italic", ["psname"]="HoeflerText-Italic", ["subfamily"]="Italic", }, ["size"]={}, ["slant"]=-13.5, ["weight"]=5, ["width"]=5, }, { ["familyname"]="Hoefler Text", ["filename"]={ "/Library/Fonts/Hoefler Text.ttc", 3 }, ["fontname"]="HoeflerText-BlackItalic", ["fullname"]="Hoefler Text Black Italic", ["names"]={ ["family"]="Hoefler Text", ["fullname"]="Hoefler Text Black Italic", ["psname"]="HoeflerText-BlackItalic", ["subfamily"]="Black Italic", }, ["size"]={}, ["slant"]=-13.5, ["weight"]=7, ["width"]=5, },
On 03/06/2011 04:55 PM, Beingalink wrote:
I just decided to investigate this problem a bit deeper and finally found out that doing some manual changes in otfl-names.lua, enables me to use these fonts again. I tested it using "Hoefler Text.ttc". The entries in otfl-names.lua regarding hoefler text are:
I added the actual path to the .ttc file and thus changed the entries to this:
It looks like the mkluatexfontdb can find the font, but the runtime system cannot. As this is probably a luaotfload problem, I am including the lualatex mailing list in the CC list. Best wishes, Taco
participants (2)
-
Beingalink
-
Taco Hoekwater