react-native-songbook icon indicating copy to clipboard operation
react-native-songbook copied to clipboard

glyph v does not exist in font

Open akfldk1028 opened this issue 4 years ago • 2 comments

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?

akfldk1028 avatar Nov 08 '20 09:11 akfldk1028

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 avatar Dec 10 '20 17:12 MatthewDorner

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

MatthewDorner avatar Dec 19 '20 17:12 MatthewDorner