[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font names convention
From: |
Werner LEMBERG |
Subject: |
Re: Font names convention |
Date: |
Thu, 18 Jan 2018 17:05:39 +0100 (CET) |
> When in the .tex file I write
>
> \setmainfont{Adobe Garamond Pro}
>
> the font is correctly used, but the "fullname" I get out of the Lua
> object is "AGaramondPro-Regular".
This looks like the PostScript name.
> This is also what is shown in the properties of the PDF, but with
> different entries for the different font weights.
>
> the "name" of the Lua font object is
>
> "AdobeGaramondPro:mode=node;script=latn;language=DFLT;+tlig;"
>
> This looks like it could be massaged to "Adobe Garamond Pro", but
> I'm really not sure this is the way to go.
[I'm not a luatex user.] This appears to be name ID 1 taken from the
font's `name' table, with spaces removed. I strongly suggest that you
get confirmation on a luatex list or forum.
Look also at the output of `fc-list -v', entries `family'
vs. `fullname'.
> Is *that* approach of CamelCasing a general rule? What about Fonts
> that have CamelCase in their actual name? What about fonts that
> Have consecutive capitals in their name?
There is certainly no magic here. Those camel casing is already
present in the font (or it happens as soon as spaces get removed).
> Is there any reliable way to get the name to be used for LilyPond
> out of LuaLaTeX?
I'm very confident that this is possible, since luatex parses the font
tables by itself. Again a question for a luatex list...
Werner