Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MaxPerl opened this issue Aug 8, 2019 · 2 comments
Open

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

MaxPerl opened this issue Aug 8, 2019 · 2 comments

Comments

@MaxPerl
Copy link

MaxPerl commented Aug 8, 2019

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
Copy link
Collaborator

moinejf commented Aug 9, 2019

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
Copy link
Author

MaxPerl commented Aug 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants