I'm still fairly new to construct 2, and was wondering if someone may be able to offer a little advice.
I've been looking for a way to include customised fonts within an app for mobile devices. I have read articles indicating the use of web fonts, but if I understand correctly these are hosted online. Is there a way fonts can be embedded within an app, allowing them to be accessed even when the user is not online?
Any advice you can offer would be greatly appreciated.
I'm pretty sure the game is cached, meaning you won't have to download these fonts again. I could be wrong... Ashley?
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the reply. I'm really impressed by the strong community atmosphere amongst Construct users. It�s very helpful for all of us noobs to know there's a place where we can find some answers.
Thanks for your answer, very useful to know. This does lead to another question however, something you may be able to clear up.
As I understand it, all game data for Construct 2 is saved in the cache. However many people still carry out regular house-keeping / maintenance on their systems, including clearing cached data. Obviously if users are unaware of the way Construct data is saved, this could present a real problem for them.
Do you know if there's another, more secure way to store game data within the users system?
Thanks again for the advice.
PS tried AirScape, and it's great fun to play!
This is an interesting question when applied to mobile devices, especially when you are considering directcanvas/cocoonjs.
I have to say, however, I don't know much about these things.
Glad you enjoyed my game ;)
I'm sure someone on here will know about this...
Web Fonts are not actually cached in the offline.appcache file... it's something I've been meaning to fix, but it's a little complicated. If you manually put the URL to the webfont in the offline.appcache file it might work. It's a known problem though.
Blacksmith - there are actually different storages involved in the browser, it's not all just one big cache. It goes something like this:
Ordinary document cache: stores HTML of recently visited pages, and cleared when the user hits 'clear cache'.
App Cache: stores files for Construct 2 games so the next time you play it loads instantly. *Not* cleared by pressing 'clear cache' - in fact there is no obvious way for the user to remove this at all.
WebStorage: stores data from the WebStorage object. *Not* cleared by pressing 'clear cache', like App Cache it's difficult for the user to manipulate. It's also commonly limited to 5-10mb.
The main problem is usually just the fact it's locally stored - so if you switch browser or computer, you can't get your data. The best way to solve that is store it server-side and use the AJAX object to communicate with the server.
Many thanks for the useful information; that certainly helps to make things clearer.