1
votes

Using Titanium studios; So i got this font in both my resource/fonts folder, android/fonts folder, root/assets/fonts; and I Cant find what I got wrong with my code. The only conclusion is that the font wont work with android at all. My teacher could'nt find the solution either.

I have searched long and hard but found nothing that helped yet.

http://pastie.org/8722990

1
I might be wrong, but why are you not using eclipse?We're All Mad Here
Because we use Titnium in school and are not allowed to use other software to develop apps in this course, also isnt the use of software kind of subjective? no?Henrik Engdahl
Well, it actually depends, if you want to create a program, utility and not a game eclipse is probably the best otherwise there many more. This might help you. HereWe're All Mad Here
have you try with this guide at this point: Rename font file to match PostScript name ?phemt.latd
Up-voted for: I have searched long and hard but found nothing that helped yet.We're All Mad Here

1 Answers

2
votes

The fontSize and fontFamily properties need to go in a font {} object, e.g.

var titel = Ti.UI.createLabel({
    text : "Hur låter..?",
    color : "white",
    textAlign : "center",
    bottom : "85%",
    font: { 
        fontSize : 45,
        fontFamily : 'customFont'
    }
});

http://docs.appcelerator.com/platform/latest/#!/api/Font