Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

Fonts


Google maintains a large number of very nice fonts (https://www.google.com/fonts) that can be easily used for no charge in any of our applications. The one we will use for our application is the one that has all sorts of icons, some of which we will use to make our app look a lot nicer or make our app be a bit more consistent with other apps on our devices. You can download the Material Icon font from Google's GitHub repo at https://github.com/google/material-design-icons/blob/master/iconfont/MaterialIcons-Regular.ttf. Then, click on the RAW link, and it should download the font for you.

Once the file has finished downloading, you will need to create a new folder called fonts in your app folder, like we discussed in Chapter 2, The Project Structure. Then, copy the MaterialIcons-Regular.ttf font file into that app/fonts folder.

On Android and iOS, they both are currently able to auto-register the font by the name in the font-family declaration. If you look at the font-family declaration...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime