/Fonta

Font library for android developers

Primary LanguageKotlinApache License 2.0Apache-2.0

Fonta

Font library for android developers

How to use

  1. Add this line of code to your project gradle file

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

  1. Add dependency to your module gradle file

implementation 'com.github.Tristankluivert:Fonta:2.0'

  1. Using it in your layouts

#NexaLight font

<hybrid.ng.fonta.NexaFont 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/app_name"
/>

#Lato Regular Font

<hybrid.ng.fonta.LatoFont
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/app_name"
/>

#Roboto Regular Font

<hybrid.ng.fonta.RoboFont
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/app_name"
/>

License

Copyright 2019 kluivert, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.