I'm trying to use a custom font in appcelerator alloy framework. I have the following files:
header.tss
".headerButtonLabel": {
color: '#5d5d5d',
shadowOffset: {x: 1, y: 1},
shadowColor: '#ffffff',
font: {fontSize: 18, fontFamily: 'Helvetica Neue LT Std 77 Bold Condensed'},
textAlign: 'left'
}
header.xml
<Button class="headerButton">
<Label class="headerButtonLabel" text="Text button here"></Label>
</Button>
tiapp.xml
<ios>
<plist>
<dict>
<key>UIAppFonts</key>
<array>
<string>fonts/HelveticaNeueLTStd-Bd.otf</string>
<string>fonts/HelveticaNeueLTStd-BdCn.otf</string>
<string>fonts/HelveticaNeueLTStd-Roman.otf</string>
</array>
</dict>
</plist>
</ios>
Fonts are stored in app/assets/fonts
I've attached those fonts here
When I'm opening HelveticaNeueLTStd-BdCn.otf
, it appears with the following name Helvetica Neue LT Std 77 Bold Condensed
.
Am I missing something?