Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Iconic font wrapper for Titanium Mobile.

branch: master
README.md

TiIconicFont

What is this

Iconic font charcode wrapping library for Titanium Mobile.

How to use

https://wiki.appcelerator.org/display/guides/Custom+Fonts

  • Font Awesome
  • Ligature Symbols
  • SS Pika
  • Resources/app.js

    var window = Ti.UI.createWindow();

    var fontawesome = require('lib/IconicFont').IconicFont({ font: 'lib/FontAwesome', ligature: false // optional, for ligature }); var fontawesomeLabel = Ti.UI.createLabel({ font: { fontFamily: fontawesome.fontfamily() }, text: fontawesome.icon('icon-github') // or text: fontawesome.icon([ 'icon-github', 'icon-facebook', 'icon-twitter' ]).join('') }); window.add(fontawesomeLabel);

    var ligaturesymbols = require('lib/IconicFont').IconicFont({ font: 'lib/LigatureSymbols', ligature: false // optional, for ligature }); var ligaturesymbolsLabel = Ti.UI.createLabel({ font: { fontFamily: ligaturesymbols.fontfamily() }, text: ligaturesymbols.icon('twitter') // or text: ligaturesymbols.icon([ 'github', 'facebook', 'twitter' ]).join('') }); window.add(ligaturesymbolsLabel);

    var sspika = require('lib/IconicFont').IconicFont({ font: 'lib/ti.ss-pika', ligature: true // optional, for ligature });

    window.open();

Credits

Font Awesome

http://fortawesome.github.com/Font-Awesome

You can get Ligature Symbols for free. This Font is licensed under the SIL Open Font License for download and using. Ligature Symbols has broad support for the modern browser (Chrome, Safari, Firefox, iOS - Mobile Safari, Android Browser).

Something went wrong with that request. Please try again.