我們有基於Entypo的拉力圖標。這是一項正在進行的工作,所以未來字體可能會發生變化,但它是拉力賽自己的套裝,並不是所有的Entypo圖標都可用。
您可能會發現以編程方式AppSDK2的指定版本中有哪些「拉力賽」 FONT-FAMILY圖標可通過運行該自定義應用程序:
<!DOCTYPE html>
<html>
<head>
<title>FontExplorer</title>
<script type="text/javascript" src="/apps/2.0rc2/sdk.js"></script>
<script type="text/javascript">
Rally.onReady(function() {
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
var fontStyles = _.find(document.styleSheets, function(styleSheet) {
return styleSheet.href.match(/rui-fonts\.css$/);
});
var iconRules = _.filter(fontStyles.rules, function(rule) {
return rule.selectorText && rule.selectorText.match(/\.icon\-\w+\:\:before/) && rule.style[0] === 'content';
});
this.add(_.map(iconRules, function(cssRule) {
var iconName = cssRule.selectorText.substring(1).replace('::before', '');
return {
xtype: 'component',
html: '<span style="font-family:courier" >' + iconName + '</span>',
style: {
fontSize: '20px',
display: 'block'
},
cls: iconName,
listeners: {
afterrender: function() {
if(this.getEl().getStyle('fontFamily') !== 'Rally') {
this.destroy();
}
}
}
};
}, this));
}
});
Rally.launchApp('CustomApp', {
name:"FontExplorer",
parentRepos:""
});
});
</script>
<style type="text/css">
.app {
/* Add app styles here */
}
</style>
</head>
<body></body>
</html>
有沒有辦法來確定哪些圖標都可以? – kimon
請參閱已更新的具有自定義應用程序代碼的答案,以瞭解可用的圖標。 – nickm
這真是太棒了!不過,我注意到,我今天使用的向上和向下箭頭沒有出現。是否有另一組字體不包含在此應用程序中? – kimon