Flex/air Control font style settings

Source: Internet
Author: User

I'm writing an air program today, after writing the wife said my font is too small, too ugly, so I began to tidy up the interface style of the program, thinking that such a simple work will soon be completed, but it backfired, unexpectedly took several hours to complete the control of the font settings. I finally found myself dead on the Font-weight!

The final effect to achieve:

All the time before:

Find a lot of information on the Internet, tried a lot of methods have not found a solution, and finally simply try again, found that must be set font-weight, font to be effective.

The following is the way to set the flex font for a broad list of several, for reference.

1. Ways to reference external font libraries:

@font-face

{

     font-family:FZHY;//这个名字可以随便设置
     src:url("FZHY.TTF");//使用相对路径
}

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.