Am 25.07.2018 um 12:41 schrieb Federico Bruni:
What *would* be interesting is to see the output from that "LilyPond
fc-list", but that fails with "Fontconfig error: Cannot load default
config file". Any idea how I can get that to run?
Can you find the fonts.conf file in that installation?
I can run the fc-list in these two installations without any problem:
$ find /opt/lilypond* -name fonts.conf
/opt/lilypond-2.16/usr/etc/fonts/fonts.conf
/opt/lilypond-2.18/usr/etc/fonts/fonts.conf
Perhaps you set the path manually?
What do you get from this command:
env | grep FONTCONFIG_PATH
OK, we're getting closer. There is a *substantial* difference in the
results of fc-list | grep TeX when run from the system fontconfig and
the one packaged with LilyPond:
$ fc-list | grep TeX
/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-bold.otf: TeX
Gyre Adventor:style=Bold
/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-italic.otf: TeX
Gyre Adventor:style=Italic
/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-bolditalic.otf:
TeX Gyre Adventor:style=Bold Italic
/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-regular.otf:
TeX Gyre Adventor:style=Regular
~/lilypond/usr/bin$ FONTCONFIG_PATH=~/lilypond/usr/etc/fonts ./fc-list | grep
TeX
/usr/share/fonts/X11/Type1/qagr.pfb: TeXGyreAdventor:style=Regular
/usr/share/fonts/X11/Type1/qagbi.pfb: TeXGyreAdventor:style=BoldItalic
/usr/share/fonts/X11/Type1/qagri.pfb: TeXGyreAdventor:style=Italic
/usr/share/fonts/X11/Type1/qagb.pfb: TeXGyreAdventor:style=Bold
(I've manually deleted all the lines referring to the other TeX Gyre
families, but the situation is the same.)
I'm becoming more and more confused, thinking that LilyPond finds
completely other fonts than the system's fontconfig.
What makes me wonder even more is that in a LilyPond file the following
two are possible (i.e. call the right font):
\override TextScript.font-name = "TeX Gyre Adventor Bold Italic"
\override TextScript.font-name = "TeXGyreAdventor Bold Italic"
but not this:
\override TextScript.font-name = "TeX Gyre Adventor BoldItalic"
\override TextScript.font-name = "TeXGyreAdventor BoldItalic"
So the style *as reported by LilyPond* does not work. OTOH, I can't
simply write a routing to "un-camel" the style name because in other
cases "SemiBold" must *not* be separated but taken as-is.
In the verbose log output I only find one of the following references:
[texgyreadventor_bold_italic_3.8662109375]
[tex_gyre_adventor_bold_italic_3.8662109375]
So I don't even know *which* font is actually used.
Finally: how should I try to write code to load and display fonts in
Frescobaldi under these circumstances? And then by any chance code that
reliably works on someone else's computer???
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user