Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dbankier/tidefaultfont
- Owner: dbankier
- License: other
- Created: 2014-11-21T01:57:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-02T09:43:55.000Z (over 6 years ago)
- Last Synced: 2024-04-08T16:42:45.783Z (9 months ago)
- Language: Java
- Size: 160 KB
- Stars: 16
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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