# [XeTeX] Font nuisances

Mon Oct 11 17:21:47 CEST 2010

On 11 Oct 2010, at 15:06, Gareth Hughes wrote:

> Fr. Michael Gilmary wrote:
>> Oh, now I see what you're trying to do ... and what you've got here,
>> Gareth, works for me. You can also use:
>>
>> \setmainfont[ItalicFont={BergamoStd-Italic},
>> BoldFont={BergamoStd-Bold},
>> BoldItalicFont={BergamoStd-BoldItalic}]{Cardo}
>
> Yes, it looks like fontspec allows either the full name {Bergamo Std
> Bold Italic}

Yes...

> or the PostScript name {BergamoStd-BoldItalic}.

Yes...

> Oddly, it
> will allow the compromise of {Bergamo Std-Bold Italic}, with the full
> name with a PostScript-style hyphen between the family name and the
> subfamily name, and that's it.

Almost.... That's not actually being used by xetex as "the full name with...", it's the family name and the subfamily (style) name, separated by a hyphen. In most cases, the full name is equivalent to the concatenation of family and subfamily names (separated by a space), but this is not always true -- especially when the subfamily is "Regular", in which case the full name doesn't usually include it, but also in some other cases.

JK