lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font names convention


From: David Wright
Subject: Re: Font names convention
Date: Thu, 18 Jan 2018 10:02:48 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu 18 Jan 2018 at 16:45:05 (+0100), Urs Liska wrote:
> Hi,
> 
> I am having problems getting text font names right.
> 
> From LuaLaTeX I get the information about the currently used font,
> and I inject this into a LilyPond file. This works well with "Linux
> Libertine O", but it may fail with other fonts.
> 
> 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 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. 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?
> 
> Is there any reliable way to get the name to be used for LilyPond
> out of LuaLaTeX?

Googling ctan/macros/latex/contrib/fontspec/fontspec.pdf

might help. I've only played with font names within LaTeX,
not betwen it and LP.

Cheers,
David.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]