Cosmin
Cosmin

Reputation: 53

Appcelerator custom font helvetica

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?

Upvotes: 0

Views: 1751

Answers (1)

Cosmin
Cosmin

Reputation: 53

Figure it out after all.

example image of where you will find the right name

It seems that PostScript name from font book is the right name when you develop for IOS.

Upvotes: 4

Related Questions