Ionic2 Adding custom text

Source: Internet
Author: User

Last updated to how to add a custom icon, followed by this update ionic2 how to add a custom font

First you have to have your own font file with a. ttf file font: Recommend a font file site (relatively few rogue software) Http://www.ps123.net/photoshop

And then:

For example, I downloaded the font is Muli (want to know what their font is called Click the Backhand button click the font file Point preview above yo orphan font name My name is Muli)

All you need to do now is to put the following in your Variable.scss file.

@font-Face{Font-Family: "Muli";Src:Url(".. /assets/fonts/muli-regular.ttf ")Format("TrueType");} $font -family-md-base:  "Muli"  $font -family-ios< Span class= "pun" >-base:  "Muli"  $font -family-wp-base:  "Muli"  
So you can use a custom font and see the effect right away

Ionic2 Add custom text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.