Please refer to the documentation for abc2svg when discussing the commands: http://moinejf.free.fr/abcm2ps-doc/index.html
%%scale is only kept for compatibility reasons. I am programmatically leveraging %%pagescale at the moment to deal with scaling the file to account for the screen density of the device. If MobileSheets detects that the user placed %%pagescale at the start, it will multiply that pagescale by the density scaling factor.
MobileSheets also controls the page sizes - this is necessary to ensure the svg files are rendered to match the size of the screen.
I am going to work on figuring out the font issue. You can use %%gchordfont to provide fonts to abc2svg, but if those fonts aren't available on the operating system, it probably won't work. I'll have to add support for users placing fonts in a specific directory and then trying to dynamically look for fonts in that directory at runtime when rendering the generated svg file.
abc2svg makes it REALLY difficult to break up the svg file into sections. I had to modify the abc2svg javascript code to generate indicators that I could search for when splitting pages up, and then I have to go through and generate all the SVG files for each page myself, because the library doesn't seem to support that properly. It wants to generate one continuous block of svg data, and it's defined for use with websites far more than what I'm trying to use it for. I'm not sure what's going on with the line breaks with ChordPro files. It's another thing I will have to look into. It honestly feels like I'm now having to learn, modify and maintain multiple product code bases if I'm going to have to dig into abc2svg every time an issue comes up which is not what I wanted.
The abc files I'm testing with expand to use the entire width of the application window. So I'm not sure what's going on there unless you are overriding the page size or the abc page size. That is with standalone abc files though. I just copied the abc block from Vibraphon's file into my own ChordPro file though, and the sheet music takes up the entire application window for me on Windows. So I need to know - are you setting the page size explicitly?
Mike
%%scale is only kept for compatibility reasons. I am programmatically leveraging %%pagescale at the moment to deal with scaling the file to account for the screen density of the device. If MobileSheets detects that the user placed %%pagescale at the start, it will multiply that pagescale by the density scaling factor.
MobileSheets also controls the page sizes - this is necessary to ensure the svg files are rendered to match the size of the screen.
I am going to work on figuring out the font issue. You can use %%gchordfont to provide fonts to abc2svg, but if those fonts aren't available on the operating system, it probably won't work. I'll have to add support for users placing fonts in a specific directory and then trying to dynamically look for fonts in that directory at runtime when rendering the generated svg file.
abc2svg makes it REALLY difficult to break up the svg file into sections. I had to modify the abc2svg javascript code to generate indicators that I could search for when splitting pages up, and then I have to go through and generate all the SVG files for each page myself, because the library doesn't seem to support that properly. It wants to generate one continuous block of svg data, and it's defined for use with websites far more than what I'm trying to use it for. I'm not sure what's going on with the line breaks with ChordPro files. It's another thing I will have to look into. It honestly feels like I'm now having to learn, modify and maintain multiple product code bases if I'm going to have to dig into abc2svg every time an issue comes up which is not what I wanted.
The abc files I'm testing with expand to use the entire width of the application window. So I'm not sure what's going on there unless you are overriding the page size or the abc page size. That is with standalone abc files though. I just copied the abc block from Vibraphon's file into my own ChordPro file though, and the sheet music takes up the entire application window for me on Windows. So I need to know - are you setting the page size explicitly?
Mike