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?

Urs


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to