Dear Lovro, > Hey everybody, > > I'm fairly new so I apologize if this post is out of place. > > I've been trying for some time to get the SMuFL fonts, (particularly bravura) > to work in my lilypond scores (v. 2.26.0.) > > I've tried everything I could find on GitHub > (https://github.com/dbenjaminmiller/bmusicfonts), but I mostly get an error > regarding the file path for BMusicFont-* (which is definitely correct). > > Are those methods still viable? Is there a reliable way of getting SMuFL > fonts to work?
You might want to check out this section of the LilyPond Notation Reference: https://lilypond.org/doc/v2.26/Documentation/notation/fonts#finding-fonts As it happens, I have happened to use Bravura in a previous project, and here is an example of how I made it work (I use macOS Sonoma + Frescobaldi): %%% CODE BEGINS %%% \version "2.26.0" % #(ly:font-config-add-directory "extra_fonts/") #(ly:font-config-display-fonts) #(ly:font-config-add-font "Bravura.otf") { c'1 _\markup {\override #'(font-name . "Bravura") {\fontsize #3.5 \char ##xE659 }} } %%% CODE ENDS %%% You should save a file with the code shown above in a directory where there is also your Bravura font. If you decide to keep your Bravura font elsewhere in the directory, creating another folder, you can uncomment the line 2 of the code. Change the ‘extra_fonts’ to the name of your folder that contains Bravura. (Line 3 shows the fonts that are registered for use on your computer. You can comment it or delete the line) You should also make sure that, every time you change these first few lines starting with a hashtag, you have to first save the LilyPond file before compiling it. Otherwise, it gives you an error. When all goes well, the code above should produce a middle C with “Sost.” character, which is part of Bravura. I hope this works! Best, Yoshi -- -- -- Yoshiaki Onishi https://github.com/yoshiakionishi/lilypond-snippets
