On Tue, Sep 28, 2010 at 11:53:30PM +0930, Will Robertson wrote: > Hi, > > See below. From a thread on c.t.t. perhaps for future reference. > I guess I should actually put this on github. > Oh well :) > > W > > Subject: Re: fontspec: No small caps with `Ligatures=TeX' > From: Enrico Gregorio <[email protected]> > > Arash Esbati <[email protected]> wrote: > > Enrico Gregorio <[email protected]> writes: > > There is also another one, but I'm not sure whether it depends > on fontspec or on luaotfload. > > I think the culprit is `fxlb.otf' itself. Try: > > -> otfinfo -i fxlb.otf > Family: Linux Libertine O > Subfamily: Bold Regular > Full name: Linux Libertine O Bold > PostScript name: LinLibertineOB > Version: Version 4.1.5 > ... > > The Subfamily should be `Bold' and not `Bold Regular'. I edited the > respecting line in my otfl-names.lua manually and it worked (see below) > > { > ["familyname"]="Linux Libertine O", > ["filename"]={ "fxlb.otf", false }, > ["fontname"]="LinLibertineOB", > ["fullname"]="Linux Libertine O Bold", > ["names"]={ > ["family"]="Linux Libertine O", > ["fullname"]="Linux Libertine O Bold", > ["psname"]="LinLibertineOB", > ["subfamily"]="Bold Regular", > ["subfamily"]="Bold", <<<<---- Changed > }, > ["size"]={}, > ["slant"]=0, > ["weight"]=700, > ["width"]=5, > }, > > What do you think, would you consider this a bug in the font? > > Well found! I guess Élie Roux or whoever is in charge of this > business should try and correct the naming algorithm. After all > "Bold Regular" doesn't seem completely incorrect, albeit nonstandard.
Just tell whoever in charge of Linux Libertine to fix the font, the name matching code is already complex enough. I could ignore the style name completely and rely on the numerical wight value in the OS/2 table, but that would cause a load of other bugs (SemiBold, DemiBold, anyone?). Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
