[Dev-luatex] Using .ttc fonts with lua(la)tex in mactex 2010

Beingalink beingalink at googlemail.com
Sun Mar 6 16:55:59 CET 2011


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,
  },



More information about the dev-luatex mailing list