Permalink
Browse files

README.md update

  • Loading branch information...
k0sukey committed Dec 1, 2012
1 parent 2ed7306 commit 907e826994f1b41bec2044cca2dcd0ea17edaf2c
Showing with 18 additions and 503 deletions.
  1. +0 −65 Makefile
  2. +18 −5 README.md
  3. +0 −433 bin/titanium.sh
View
@@ -1,65 +0,0 @@
-# Makefile to start Titanium Mobile project from the command line.
-
-# This is the ONLY option you should / need to configure
-ANDROID_SDK_PATH='~/Android'
-
-# Please dont change settings below here
-PROJECT_ROOT=$(shell pwd)
-
-iphone=$(iphone)
-
-android=$(android)
-
-BUILD_TYPE=$(build_type)
-
-DEVICE_TYPE=$(platform)
-
-MAKETI_DIR=$(dir $(lastword $(MAKEFILE_LIST)))
-
-
-help:
- @echo ""
- @echo "**************************************************************"
- @echo "* Welcome to MakeTi, the make system for Titanium! *"
- @echo "**************************************************************"
- @echo "The commands avaliable to you are as follows:"
- @echo ""
- @echo " $ make run - (will run as iphone for default, use the platform flag to set the platform)"
- @echo " $ make clean - (will clean your build directory)"
- @echo ""
- @echo "The options for the build command are:"
- @echo ""
- @echo " $ make run platform=ipad - (Other platforms are iphone, ipad, or android)"
- @echo " $ make run iphone=4.3 - (Where 4.3 is, put whatever iOS SDK you want to use)"
- @echo " $ make run android=10 - (Where 10 is, put the Android API level you wish to use)"
- @echo ""
- @echo "**************************************************************"
- @echo ""
-
-run:
- @if [ "${DEVICE_TYPE}" == "" ]; then\
- echo "No platform selected... running as iphone.";\
- fi
-
- @echo "Building with Titanium... as ${BUILD_TYPE}"
- @mkdir -p '${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/'
- @mkdir -p '${PROJECT_ROOT}/${PROJECT_NAME}/build/android/'
- PROJECT_ROOT='${PROJECT_ROOT}' DEVICE_TYPE=${DEVICE_TYPE} bash '${MAKETI_DIR}/bin/titanium.sh'
-
-deploy:
- @if [ "${DEVICE_TYPE}" == "" ]; then\
- echo "No platform selected... building for iphone.";\
- fi
-
- @echo "Building with Titanium... as ${BUILD_TYPE}"
- @mkdir -p '${PROJECT_ROOT}/${PROJECT_NAME}/build/iphone/'
- @mkdir -p '${PROJECT_ROOT}/${PROJECT_NAME}/build/android/'
- PROJECT_ROOT='${PROJECT_ROOT}' DEVICE_TYPE=${DEVICE_TYPE} BUILD_TYPE='device' bash '${MAKETI_DIR}/bin/titanium.sh'
-
-clean:
- @rm -rf '${PROJECT_ROOT}/build/iphone/'
- @mkdir -p '${PROJECT_ROOT}/build/iphone/'
- @echo "Deleted: ${PROJECT_ROOT}/build/iphone/*"
- @rm -rf '${PROJECT_ROOT}/build/android/'
- @mkdir -p '${PROJECT_ROOT}/build/android/'
- @echo "Deleted: ${PROJECT_ROOT}/build/android/*"
View
@@ -10,24 +10,37 @@ https://wiki.appcelerator.org/display/guides/Custom+Fonts
* http://fortawesome.github.com/Font-Awesome using fontawesome-webfont.ttf
* Ligature Symbols
* http://kudakurage.com/ligature_symbols/ using LigatureSymbols.ttf
+* SS Pika
+ * http://symbolset.com/ SSPika.ttf
* Resources/app.js
var window = Ti.UI.createWindow();
-
- var fontawesome = require('lib/IconicFont').IconicFont({ font: 'lib/FontAwesome' });
+
+ 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('github') // or text: fontawesome.icon([ 'github', 'facebook', 'twitter' ]).join('')
});
window.add(fontawesomeLabel);
-
- var ligaturesymbols = require('lib/IconicFont').IconicFont({ font: 'lib/LigatureSymbols' });
+
+ 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
Oops, something went wrong.

0 comments on commit 907e826

Please sign in to comment.