Posts: 3
Threads: 1
Joined: Mar 2025
Reputation:
0
On iOS, MSPro seems to ignore typeface* in font directives (everything seems to be rendered in a default serif typeface) but honors size. Silver lining: I can just leave all the font directives in place for use by e.g., txtmus or EasyABC.
*in addition to my usual %%gchordfont Avenir-Book, I've tried Sans, sans, sans-serif, san-serif and Arial. Perhaps I'm missing something about the implementation.
Posts: 13,955
Threads: 302
Joined: Apr 2012
Reputation:
260
At the moment, if the font is not one of the keywords that MobileSheets is explicitly handling, it will use the default font for the platform. I can improve this handling a bit by trying to see if the font can be loaded by the OS, and if so, pass that font back into the SVG library to use. I should add that the abc library doesn't care about whether the font exists or not. I believe it just inserts the font name into the svg file that is produced, and it's up to the code handling the SVG parameters to correctly handle that font. So the code I need to update is actually the SVG code to try to load fonts specified in the SVG file, and only if I can't load those fonts should I be falling back to the platform default.
Mike