fonts on Mac 10.7.4
Hi, I'm using Lilypond.app 2.16 on Mac 10.7.4. (The change log says 10.7 is supported now.) lilypond -dshow-available-fonts x shows that I have Gloucester MT Extra Condensed available as a font for me. Font Book shows it as being in True Type and Open Type format. I try specifying it in my lilypond score file: \override TimeSignature #'font-name = "Gloucester MT Extra Condensed" \override TimeSignature #'font-size = #2 and it just comes at as some sort of plain sans serif looking thing. I don't get any error messages or warnings. Is there something extra I have to do to make lilypond see my fonts? I saw the thing in the docs about "fondu" but that only looked relevant for the ".dfont" system fonts on os x. Thanks, Curt ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts on Mac 10.7.4
On 2 sept. 2012, at 08:58, Curt wrote: > Hi, I'm using Lilypond.app 2.16 on Mac 10.7.4. (The change log says 10.7 is > supported now.) > > lilypond -dshow-available-fonts x > > shows that I have Gloucester MT Extra Condensed available as a font for me. > Font Book shows it as being in True Type and Open Type format. > > I try specifying it in my lilypond score file: > > \override TimeSignature #'font-name = "Gloucester MT Extra > Condensed" > \override TimeSignature #'font-size = #2 > > and it just comes at as some sort of plain sans serif looking thing. I don't > get any error messages or warnings. > > Is there something extra I have to do to make lilypond see my fonts? I saw > the thing in the docs about "fondu" but that only looked relevant for the > ".dfont" system fonts on os x. > > Thanks, > Curt > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user Hey Curt, I was wracking my head over the same thing not too long ago on OS X. LilyPond uses a library called fontconfig to do all font lookups. What happens inside fontconfig is rather opaque to LilyPond - it just looks for a font and, if not found, replaces it with the generic sans serif of which you speak. The best way to know how fontconfig searches for fonts is through their documentation : http://www.freedesktop.org/wiki/Software/fontconfig You can also email Werner LEMBERG , a member of both the LilyPond and fontconfig communities, who may have some insight on how to solve your problem. Cheers, MS___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts on Mac 10.7.4
Hello, 3 things that might help : - OS X font recognized by LilyPond can be a problem. On my configuration, I have no problem with OpenType, .dfont, Windows true type (.ttf), but it doesn't recognize my Mac True type fonts (generally, rather old fonts). As your font is available in both True Type and Openfont, first thing to do would be to check in the Font Book app that the active one is the Opentype version (and thus the true type version inactive). Did you already try to use that particular font to change the title font in LilyPond ? Trying this in the paper block could test that your font is really recognized by Lilypond : \paper{ myStaffSize = #20 #(define fonts (make-pango-font-tree "Gloucester MT Extra Condensed" "Gloucester MT Extra Condensed" "Gloucester MT Extra Condensed" (/ myStaffSize 20) )) } % - I tried your command with a custom font I use in a document, and I does absolutely nothing. So, I may be wrong, but I'm not totally sure that time-signature font can be changed that way. - another idea would be to force lilypond to create a new font cache file. Using the terminal, you should enter the following command : rm .lilypond-fonts.cache-2 The next LilyPond compilation will take much time, creating a new cache file. Hope this helps Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/fonts-on-Mac-10-7-4-tp131949p131955.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts on Mac 10.7.4
On 2012-09-02 08:58, Curt wrote: Hi, I'm using Lilypond.app 2.16 on Mac 10.7.4. (The change log says 10.7 is supported now.) lilypond -dshow-available-fonts x shows that I have Gloucester MT Extra Condensed available as a font for me. Font Book shows it as being in True Type and Open Type format. Strange. I have this font installed, too, and it shows nicely a number of glyphs in Font Book (not sure whether they belong to Gloucester, though). I reckoned your problem has something to do with the font file permissions, so I went to copy it to my user folder - and found out that this very font (in /Library/Fonts/Microsoft/) not only lacks an extension, but also any content. It's got 0 bytes. Yep. No clue where the magic lies that FontBook can make something out of it, but obviously it's not the favorite method of pango. On a probably completely uninteresting side note, the buzzword "condensed" in the font name is recognized and the appropriate version of DejaVuSans is used on my machine. I try specifying it in my lilypond score file: \override TimeSignature #'font-name = "Gloucester MT Extra Condensed" \override TimeSignature #'font-size = #2 and it just comes at as some sort of plain sans serif looking thing. I don't get any error messages or warnings. You should get a warning like warning: time signature symbol `C44' not found; reverting to numbered style (at least if you use 4/4 or 2/2 measures), but then again this can be remedied with \override TimeSignature #'style = #'numbered Otherwise your code is fine, and works with other fonts for me. Best, Alexander ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts on Mac 10.7.4
On Sep 2, 2012, at 1:02 AM, flup2 wrote: > Hello, > > 3 things that might help : > > Did you already try to use that particular font to change the title font in > LilyPond ? Trying this in the paper block could test that your font is > really recognized by Lilypond : I just tried - it looks like it can't use it in the title, either. There, I get a console error: warning: `(fondu -force /Library/Fonts/Microsoft/Gloucester MT Extra Condensed)' failed (256) When I try to run fondu in Terminal, I get this: Can't find an appropriate resource fork in /Library/Fonts/Microsoft/Gloucester MT Extra Condensed But it's odd that Lilypond otherwise reports it as an available font. And I'm not sure why it's trying to run fondu on it in the first place, as it's not a .dfont . Then, a bit of progress - I was able to find a *.ttf version of that font online, and I just threw the *.ttf file into my ~/.fonts directory. Then, your code sample worked on a small test document. The title is in Gloucester. However, it still doesn't work for the time signature, (you were right), which is a bummer since that was the point for me. :) Anyway, I'm not sure if any of these are bugs, but I'd summarize as: - Why is Lilypond trying to run fondu on font files that are already truetype - the installed version is font v 1.51, opentype and truetype, shows as 0 bytes in terminal but 76 kilobytes in finder - the downloaded *.ttf is font v 1.50, truetype, shows as 26 kb in terminal, and 68 kb in finder - If a title can be changed to another font, shouldn't a time signature be able to be changed as well? Or is there another way to accomplish this? I thought this might be because of the Feta font, but this docs page implies it should be possible to switch time signature fonts: http://lilypond.org/doc/v2.16/Documentation/notation-big-page.html#single-entry-fonts Thanks to anyone willing to wade in these weeds. :) Curt ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts on Mac 10.7.4
The correct command is, as indicated in the help page you linked : \override Staff.TimeSignature #'font-name = "..." The "Staff." before TimeSignature was missing in your override. Now, it's working right on my side. Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/fonts-on-Mac-10-7-4-tp131949p131961.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: fonts on Mac 10.7.4
On Sep 2, 2012, at 2:27 AM, flup2 wrote: > The correct command is, as indicated in the help page you linked : > > \override Staff.TimeSignature #'font-name = "..." > > The "Staff." before TimeSignature was missing in your override. Now, it's > working right on my side. > > Philippe Sorry, I was probably being too concise. :) I have it inside a Staff block. \new Staff \with { \override TimeSignature #'style = ##f \override TimeSignature #'font-size = #5 \override TimeSignature #'font-name = "Gloucester MT Extra Condensed" } Switching it to Times works, but Gloucester doesn't, even though Gloucester does work for title. Ah well, it looks like there are plenty of other fonts I can use, that work for time signature. I guess I learned a lot about font behavior tonight. :) Curt ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user