Calligrapher

来源:互联网 发布:淘宝订单生成器手机版 编辑:程序博客网 时间:2024/06/05 19:21

Calligrapher

项目地址:Calligrapher
简介:A helper library to set custom fonts to your android view

A helper library to set custom fonts to your android view

Please visit the website to know the how to.

Website: http://anwarshahriar.github.io/projects/calligrapher/calligrapher.html

This is a simple library for setting specific font to all of your view with a single line. Feel free to fork it or fix any issues and make a pull request.

Add to gradle dependencies

dependencies {  compile 'me.anwarshahriar:calligrapher:1.0'}

Place your font under assets directory or sub directories under assets.

Example use

Calligrapher calligrapher = new Calligrapher(this);calligrapher.setFont(this, "alexbrush/AlexBrush-Regular.ttf", true);

demo 1 demo 2

0 0