Giter Site home page Giter Site logo

onurciner / fontchange Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 7.0 1.42 MB

The easiest way to customize fonts. You can change fonts on direct xml. There are 16 fonts in it. You can directly add your own font to the "assets" folder.

Home Page: http://www.onurciner.com

Java 100.00%

fontchange's Introduction

FontChange

The easiest way to customize fonts. You can change fonts on direct xml. There are 16 fonts in it. You can directly add your own font to the "assets" folder.

How to include

Add the repository to your project build.gradle:

repositories {
	maven {
		url "https://jitpack.io"
	}
}

And add the library to your module build.gradle:

dependencies {
	compile 'com.github.10uroi:FontChange:2.0'
}

Usage

Automatically selects the font "Alien_Encounters" installed in

<com.onurciner.fontchange.FTextView
     app:xfontFamily="Alien_Encounters"
     android:text="Hello World! -> Alien Encounters"
     android:id="@+id/view1"             
     android:layout_marginTop="4dp"
     android:layout_marginBottom="4dp" />

Selects the font loaded in "Assets->fonts->myfont.ttf"

<com.onurciner.fontchange.FTextView
     app:xfont="fonts/myfont.ttf"         
     android:text="My Font"
     android:id="@+id/view1" />

You can customize the font as you like

app:xfontFamily="Black_and_White"
app:xfont="fonts/myfont.ttf"
app:xfontStyle="bold"

You can change EditText, TextView and Button fonts

FButton

<com.onurciner.fontchange.FButton
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:id="@+id/button_my"
     android:text="My Button"
     app:xfontFamily="Friday_13" />

FEditText

<com.onurciner.fontchange.FEditText
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:id="@+id/edittext_my"
     app:xfontFamily="Prismfont" />

fontchange's People

Contributors

onurciner avatar

Stargazers

A Kumar avatar  avatar Salih Can avatar Collins Swai avatar Mehmet Sefa avatar Hocine Hamdi avatar JBarbosa avatar  avatar David Ruiz avatar  avatar Jungle avatar Pinkal Patel avatar Xiaohai.lin avatar Bakha avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.