• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3.9.16 - sans-serif fonts default to serif
#16
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.
Reply
#17
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
Reply




Users browsing this thread:
Geoff Bacon, 1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2025 MyBB Group.