erkannt Meine Apps erkennen die Schriftarten-Dateien nicht mehr mit SDK> = 5.2.0.GA.Appcelerator: Schriftarten werden nicht von SDK 5.2.0.GA
Mit SDK < = 5.1.2.GA das kein Problem
die Dokumentation Lesen ich nichts zu diesem Problem im Zusammenhang gefunden haben, oder bin ich falsch?
TiApp.xml
<ios>
<plist>
<dict>
<key>UIAppFonts</key>
<array>
<string>/fonts/icons.ttf</string>
</array>
....
</dict>
</plist>
</ios>
Font-Verzeichnis
Beispiel für Symbol
var IconicFont = require('/icon/IconicFont');
var Icons = new IconicFont({
font : '/icon/ListIcons'
});
var myBtn = Ti.UI.createButton({
height : 50,
width : 50,
color : 'white',
font : {
fontSize : 30,
fontFamily : Icons.fontfamily
},
title : Icons.icon("nameicon"),
textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER,
verticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER
});
IconicFont.js
function IconicFont(params) {
params = params || {};
this._font = require(params.font);
}
Object.defineProperties(IconicFont.prototype, {
font: {
set: function(param){
this._font = require(param);
},
get: function(){
return this._font;
}
},
fontfamily: {
get: function(){
return this._font.fontfamily;
}
}
});
IconicFont.prototype.icon = function(param){
var result = [];
if (!Array.isArray(param)) {
param = [param];
}
for (var i = 0; i < param.length; i++) {
result.push(String.fromCharCode(this._font.charcode[param[i]]));
}
return result.join('');
};
module.exports = IconicFont;
ListIcons.js
exports.fontfamily = 'FontName';
exports.charcode = {
'image':0xf11a,
'.....':......
};
Sicherlich die Appcelerator Foren wäre ein besserer Ort für Ihre Frage? – trojanfoe
SO ist das neue Appcelerator-Forum. http://www.appcelerator.com/blog/2016/01/embracing-stack-overflow-for-appcelerator-community-support/ – WhiteLine
Hahah, was für ein Witz. – trojanfoe