MatthewDorner / react-native-songbook

React Native app for viewing music in ABC notation format.
GNU General Public License v3.0
18 stars 4 forks source link

glyph v does not exist in font #5

Open akfldk1028 opened 3 years ago

akfldk1028 commented 3 years ago

Hi, I tried using your source, Almost everything was done right but It had an error. Abc sheet music is not rendered and message says "BadGlyph" , "glyph v does not exist in font" . Maybe it's not working in the vexflow or abcjs-vexflow-renderer. Can I check the full request if you do it?

MatthewDorner commented 3 years ago

Sorry, I haven't been online much. I remember I ran into that error during development, was something to do with the formatting or encoding of the source ABC text. It may have been the reason I added the:

contents = contents.replace(/\r/g, ''); // get weird errors if I don't do this

in ImportIntoCollectionModal.js, or maybe it was the:

const escapedTuneBook = tuneBook.replace(/"/g, '""');

in db-operations.js.

Have you modified the code to try and get ABC text into the app in some new way? You're just running the React Native app, right, not using abcjs-vexflow-renderer in your own app? You didn't modify the default data .abc files?

MatthewDorner commented 3 years ago

Are you running this in a Windows development environment? I think it might be due to the difference between Windows and Unix newlines. You might have to convert the .abc files to use Windows newlines.

http://www.cs.toronto.edu/~krueger/csc209h/tut/line-endings.html