lewdlime / abcm2ps

abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format. It is an extension of abc2ps which may handle many voices per staff. abcm2ps is Copyright © 2014-2016 Jean-Francois Moine.
http://moinejf.free.fr/
GNU General Public License v3.0
82 stars 31 forks source link

%%musicfont directive doesn't work in ver 8.14.5 #56

Open MaxPerl opened 5 years ago

MaxPerl commented 5 years ago

Hello, I tried the following directive at the beginning of my abc file: %%musicfont url(../Bravura.otf) Unfortunately the following output is processed: Out001 Also %%musicfont Bravura didn't work. The font is installed at /usr/local/share/fonts and recognized from other programs. By the way. I got the same output with abcjs24 and abctopdf from abc2svg: abc Thanks in advance, Max PS.: abcm2ps is a great application. Thank you so much for creating such a phantastic piece of software!

moinejf commented 5 years ago

Hi Max, There was a bug in abcm2ps when not using url(..) (it does not exist in abc2svg). With the fix, the fonts should be found when installed in the system. But, anyway, I could not find a way to know if a font is installed!

About the font definition with url(..), I found that some browsers do not like relative paths. Did you try absolute paths?

Thanks for the report.

MaxPerl commented 5 years ago

Thank you very much for your fix. With %%musicfont Bravura.otf it now works fine, even if I expected according the description here that %%musicfont Bravura should be the right directive. url() doesn't work on my machine neither with relative nor with absolute paths. In abc2svg I have the same problems. But I only tested it with the batch scripts (abctopdf and abcjs24), not with embedding it in a HTML page... Again thank you very much for your quick help, Max