Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Appcelerator自定义字体helvetica_Appcelerator_Appcelerator Mobile_Titanium Alloy - Fatal编程技术网

Appcelerator自定义字体helvetica

Appcelerator自定义字体helvetica,appcelerator,appcelerator-mobile,titanium-alloy,Appcelerator,Appcelerator Mobile,Titanium Alloy,我正在尝试在appcelerator alloy框架中使用自定义字体。 我有以下文件: 标题。tss ".headerButtonLabel": { color: '#5d5d5d', shadowOffset: {x: 1, y: 1}, shadowColor: '#ffffff', font: {fontSize: 18, fontFamily: 'Helvetica Neue LT Std 77 Bold Condensed'}, textAlig

我正在尝试在appcelerator alloy框架中使用自定义字体。 我有以下文件:

标题。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>
<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>

tiapp.xml

<Button class="headerButton">
    <Label class="headerButtonLabel" text="Text button here"></Label>
</Button>
<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>

UIAppFonts

当我打开
HelveticaNeueLTStd BdCn.otf
时,它会显示以下名称
Helvetica Neue LT Std 77粗体压缩


我错过了什么吗?

毕竟要想清楚


在为IOS开发时,字体手册中的PostScript名称似乎是正确的名称。

毕竟要弄清楚


在为IOS开发时,字体手册中的PostScript名称似乎是正确的名称。

如果与Tianium文档状态相同的系列中只有一种字体,则可以使用“系列”。但是,PostScript名称将始终有效,并且可以区分同一系列中的不同字体样式。如果与文档状态相同的系列中只有一种字体,则可以使用“系列”。但是,PostScript名称将始终有效,并且可以区分同一系列中的不同字体样式