Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbankier/tidefaultfont

Set the default custom font in your Titanium Android application.
https://github.com/dbankier/tidefaultfont

Last synced: about 2 months ago
JSON representation

Set the default custom font in your Titanium Android application.

Awesome Lists containing this project

README

        

# TiDefaultFont

Set the __default__ _custom_ font in your Titanium Android application. Affects all native elements, e.g. action bars, tabs, dialogs as well as
acts as the default font for all `Ti.UI` elements.

## How To

* Copy your custom font to: `Resources/fonts` directory

* Install the module as normal, e.g. with [gitto](http://gitt.io/):

```
$ gittio install yy.defaultfont
```

* Add the following to your `tiapp.xml`

```
fonts/MyFont.ttf
```

* Add the following to your custom theme:

```
serif
```

### Custom Theme Example
In `tiapp.xml`:

```






```

In `platform/android/res/values/style.xml`, e.g.:

```


<item name="android:typeface">serif</item>

```

### Credits
Mostly based on this: https://gist.github.com/artem-zinnatullin/7749076

### License: MIT