Use a custom fonts on Axway Titanium™ SDK

Thomas Lemaitre
Mar 30, 2018 · 3 min read
Fonts app on MacOS
“.regular”:{
font : { fontFamily : ‘AnishaFree-Regular’ }
}
{
"global": {
"FONTS": {
"regular": "AnishaFree-Regular"
}
},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:blackberry": {},
"os:ios": {},
"os:mobileweb": {},
"os:windows": {},
"dependencies": {}
}
“.regular”:{
font : { fontFamily : Alloy.CFG.FONTS.regular }
}

BONUS : Use FONT AWESOME in your app

".fa": {
font: { fontFamily : 'FontAwesome' }
}
<Label class="fa" text="\uf0c0" />

About me

All Titanium

Everything about App Development using Appcelerator Titanium

Thomas Lemaitre

Written by

CTO of http://www.squirrel.fr, a mobile agency in Paris and Reunion Island

All Titanium

Everything about App Development using Appcelerator Titanium