Ok so I’ve got a rather complex setup for my Titanium app, but basically I’m creating a page dynamically by reading properties of a JSON manifest file that will be loaded from a server.
The app reads different properties, one of which is an array of objects that describe views on the page. For each object in that array, a view will be created using the properties specified within that object.
I want to be able to change the design of the page easily, so that JSON manifest would also specify a font that the page should use. The location of the font file on the server would be shown in the manifest, and the app will save that file for access later. How do I use this font file? I’ve seen the example on TutsPlus on how to incorporate a custom font, but that method was static. How can I dynamically load fonts for use in a view?
Looks like you’ll have to use a custom extension. No problem, someone has made this very easy!