appc-cli-titanium
Version:
Titanium CLI Plugin
229 lines (226 loc) • 4.69 kB
JavaScript
function FontAwesome(options) {
switch (Ti.Platform.osname) {
case 'iphone':
case 'ipad':
this.fontfamily = 'FontAwesome';
break;
case 'android':
this.fontfamily = 'fontawesome-webfont';
}
this.charcode = {
glass: 0xf000,
music: 0xf001,
search: 0xf002,
envelope: 0xf003,
heart: 0xf004,
star: 0xf005,
starEmpty: 0xf006,
user: 0xf007,
film: 0xf008,
thLarge: 0xf009,
th: 0xf00a,
thList: 0xf00b,
ok: 0xf00c,
remove: 0xf00d,
zoomIn: 0xf00e,
zoomOut: 0xf010,
off: 0xf011,
signal: 0xf012,
cog: 0xf013,
trash: 0xf014,
home: 0xf015,
file: 0xf016,
time: 0xf017,
road: 0xf018,
downloadAlt: 0xf019,
download: 0xf01a,
upload: 0xf01b,
inbox: 0xf01c,
playCircle: 0xf01d,
repeat: 0xf01e,
refresh: 0xf021,
listAlt: 0xf022,
lock: 0xf023,
flag: 0xf024,
headphones: 0xf025,
volumeOff: 0xf026,
volumeDown: 0xf027,
volumeUp: 0xf028,
qrcode: 0xf029,
barcode: 0xf02a,
tag: 0xf02b,
tags: 0xf02c,
book: 0xf02d,
bookmark: 0xf02e,
print: 0xf02f,
camera: 0xf030,
font: 0xf031,
bold: 0xf032,
italic: 0xf033,
textHeight: 0xf034,
textWidth: 0xf035,
alignLeft: 0xf036,
alignCenter: 0xf037,
alignRight: 0xf038,
alignJustify: 0xf039,
list: 0xf03a,
indentLeft: 0xf03b,
indentRight: 0xf03c,
facetimeVideo: 0xf03d,
picture: 0xf03e,
pencil: 0xf040,
mapMarker: 0xf041,
adjust: 0xf042,
tint: 0xf043,
edit: 0xf044,
share: 0xf045,
check: 0xf046,
move: 0xf047,
stepBackward: 0xf048,
fastBackward: 0xf049,
backward: 0xf04a,
play: 0xf04b,
pause: 0xf04c,
stop: 0xf04d,
forward: 0xf04e,
fastForward: 0xf050,
stepForward: 0xf051,
eject: 0xf052,
chevronLeft: 0xf053,
chevronRight: 0xf054,
plusSign: 0xf055,
minusSign: 0xf0056,
removeSign: 0xf057,
okSign: 0xf058,
questionSign: 0xf059,
infoSign: 0xf05a,
screenshot: 0xf05b,
removeCircle: 0xf05c,
okCircle: 0xf05d,
banCircle: 0xf05e,
arrowLeft: 0xf060,
arrowRight: 0xf061,
arrowUp: 0xf062,
arrowDown: 0xf063,
shareAlt: 0xf064,
resizeFull: 0xf065,
resizeSmall: 0xf066,
plus: 0xf067,
minus: 0xf068,
asterisk: 0xf069,
exclamationSign: 0xf06a,
gift: 0xf06b,
leaf: 0xf06c,
fire: 0xf06d,
eyeOpen: 0xf06e,
eyeClose: 0xf070,
warningSign: 0xf071,
plane: 0xf072,
calendar: 0xf073,
random: 0xf074,
comment: 0xf075,
magnet: 0xf076,
chevronUp: 0xf077,
chevronDown: 0xf078,
retweet: 0xf079,
shoppingCart: 0xf07a,
folderClose: 0xf07b,
folderOpen: 0xf07c,
resizeVertical: 0xf07d,
resizeHorizontal: 0xf07e,
barChart: 0xf080,
twitterSign: 0xf081,
facebookSign: 0xf082,
cameraRetro: 0xf083,
key: 0xf084,
cogs: 0xf085,
comments: 0xf086,
thumbsUp: 0xf087,
thumbsDown: 0xf088,
starHalf: 0xf089,
heartEmpty: 0xf08a,
signout: 0xf08b,
linkedinSign: 0xf08c,
pushpin: 0xf08d,
externalLink: 0xf08e,
signin: 0xf090,
trophy: 0xf091,
githubSign: 0xf092,
uploadAlt: 0xf093,
lemon: 0xf094,
phone: 0xf095,
checkEmpty: 0xf096,
bookmarkEmpty: 0xf097,
phoneSign: 0xf098,
twitter: 0xf099,
facebook: 0xf09a,
github: 0xf09b,
unlock: 0xf09c,
creditCard: 0xf09d,
rss: 0xf09e,
hdd: 0xf0a0,
bullhorn: 0xf0a1,
bell: 0xf0a2,
certificate: 0xf0a3,
handRight: 0xf0a4,
handLeft: 0xf0a5,
handUp: 0xf0a6,
handDown: 0xf0a7,
circleArrowLeft: 0xf0a8,
circleArrowRight: 0xf0a9,
circleArrowUp: 0xf0aa,
circleArrowDown: 0xf0ab,
globe: 0xf0ac,
wrench: 0xf0ad,
tasks: 0xf0ae,
filter: 0xf0b0,
briefcase: 0xf0b1,
fullscreen: 0xf0b2,
group: 0xf0c0,
link: 0xf0c1,
cloud: 0xf0c2,
beaker: 0xf0c3,
cut: 0xf0c4,
copy: 0xf0c5,
paperClip: 0xf0c6,
save: 0xf0c7,
signBlank: 0xf0c8,
reorder: 0xf0c9,
listUl: 0xf0ca,
listOl: 0xf0cb,
strikethrough: 0xf0cc,
underline: 0xf0cd,
table: 0xf0ce,
magic: 0xf0d0,
truck: 0xf0d1,
pinterest: 0xf0d2,
pinterestSign: 0xf0d3,
googlePlusSign: 0xf0d4,
googlePlus: 0xf0d5,
money: 0xf0d6,
caretDown: 0xf0d7,
caretUp: 0xf0d8,
caretLeft: 0xf0d9,
caretRight: 0xf0da,
columns: 0xf0db,
sort: 0xf0dc,
sortDown: 0xf0dd,
sortUp: 0xf0de,
envelopeAlt: 0xf0e0,
linkedin: 0xf0e1,
undo: 0xf0e2,
legal: 0xf0e3,
dashboard: 0xf0e4,
commentAlt: 0xf0e5,
commentsAlt: 0xf0e6,
bolt: 0xf0e7,
sitemap: 0xf0e8,
umbrella: 0xf0e9,
paste: 0xf0ea,
userMd: 0xf200
};
}
FontAwesome.prototype.getCharcode = function(options) {
return this.charcode[options];
}
module.exports = FontAwesome;