I just found this and thought I might share. Google has a giant pile of fonts, free to use in your web app.
Google is nice because that provide you not only with the font, but a very high availability server to grab the font from (rather than host it on you server) The also provide you with the syntax on exactly how to download it (Example): http://www.google.com/fonts#UsePlace:use/Collection:Source+Sans+Pro
If you simply set app to the App.HTMLheader to (In this case) Goggle allows you to select all the members of the font family and generated the link for you. (I suck at CSS so for me its wonderful)
They you can download the font to your Mac and it designs and works seamlessly with Xojo Web.
Makes me wonder; What other stuff is out there that I’m missing?
[quote=73053:@Norman Palardy]And pray to god your site always a decent connection to google so you CAN get the font
While google is unlikely to ever be offline its not impossible for your connection to have issues and then you don’t have a fallback that you expect[/quote]
[quote=73053:@Norman Palardy]And pray to god your site always a decent connection to google so you CAN get the font
While google is unlikely to ever be offline its not impossible for your connection to have issues and then you don’t have a fallback that you expect[/quote]
That’s a bit extreme you would just fall back onto another font. Just specify similar alternate fonts. I use google fonts on boxedbyte.com and just fall back onto verdana, tahoma. Never had an issue.
Follow that by the font you want to use, wrapped in a style name, preceded VERY IMPORTANT by a period, and you add the code between brackets :
.haha { font-family: 'Mate SC', serif; }
In your project, add a WebStyle of exactly the same name, without the period. ‘haha’
The beauty of that way is that you can set the webstyle any way you want : justification, color, and so on, as usual, while using the Google font. Setting other fonts in the webstyle seem to do nothing, but I suppose these fonts will be used as fallback in the very unlikely event Google servers went down.
The beauty of that method is that you benefit from all the webstyle features while having the webfont.
You can also convert ttf fonts to svg and embed them in your app. Then they are always available, and cannot be ‘stolen’ by users whom purchase your webapps…plus, then they are always available
Bob already gave you an answer. From what I see, the fonts set in the regular Xojo Webstyle should be used as fallback as well. At any rate, if the browser does not find any of the prescribed fonts, it will simply use the default one.