Custom font solution
I made it my mission to get custom fonts to work. I wasn't particularly pleased with doing the "dirty," KitchenSink-shell method (it would often render the project useless and unrenderable). So, I finally found a way that reliably and continually works. Since it is mildly complicated, I made a video for you fine folks.
Note: I got it working with BOTH .ttf and .otf files. Also, I got it working on the phone itself (though I've not submitted it in an app yet).
I haven't tried this with an iPad project, but I suspect it would be the same process.
My specs:
MacBookPro 10.6.4;
iPhone 3G 4.0.1;
Titanium 1.2.1 with 1.4 SDK
14 Answers
-
Remember to delete the build folder after each time you add new font otherwise the change won't show up in your app.
-
Has anyone noticed this not working with SDK 4.2, Titanium 1.2.2? I've followed the video and even Jeff's blog post and I can see the font being recognized and included in the build but it never renders the font.
Any ideas? Thx!
-
oh THANK YOU, no other method worked for me. And yes, it is working for iPad too.
-
THANK YOU!!! This is perfect!
-
Great Work. Thank you for this!
-
Custom font is crashing my app on 3G - 3.1.3
iPad - 3.2.2 & 4G - 4.0.2 working
My specs: MacBookPro 10.6.4 / Titanium 1.2.1 / 1.4 SDK
-
Great!
-
Great!
-
Hey,
I got it working for iPhone. Thanks a ton.. But I need to get it on Android.. How do I get custom fonts in the form of ttf file to work on Android.
Thanks
-
This works perfectly. Thanks a ton!
-
make sure your font filename has estension in lower case (.otf and not .OTF)
-
Totally works. Thanks for the video guide.
-
Worked just fine for me! Thanks!
-
works! awesome!