lenmus / lomse

A C++ library for rendering, editing and playing back music scores.
MIT License
117 stars 28 forks source link

Notes don't appear #374

Closed AlbertFarguell closed 1 year ago

AlbertFarguell commented 1 year ago

After compiling tutorial-2-wx, everything went right and the program executed as expected. But after switching off and on the computer, the program executes again but this time not showing the notes, only the staff and the beams. Do you know what I am missing. Thank you in advance, Albert Farguell

cecilios commented 1 year ago

I can not reproduce this. After switching off the computer and restarting, the already built tutorial works perfectly for me.

If the staves, stems and barlines are correctly rendered the problem is for sure that lomse cannot find the Bravura font needed to render noteheads and other musical symbols. Probably lomse is not correctly installed or somehow the Bravura font was deleted.

In your home folder you will find the lomse log file lomse-log.txt with information logged in last execution of a program using lomse. In the log you will find a line such as:

lomse_linux.cpp, line 169. INFO: [lomse::FontSelector::find_font] key=anyBravura00, Path=/home/cecilio/.local/share/fonts/Bravura.otf

displaying the path where lomse is looking for the font. Check if the font is still installed in that path.

AlbertFarguell commented 1 year ago

Thank you for your prompt answer. You are right, don't ask me how but Bravura font was deleted from the directory it initially was. Once in its place, everything works flawlessly. Thank you again.