Summary of examples of font-face usages in CSS3

Source: Internet
Author: User
Everyone knows that browsers now support CSS3 custom fonts (@font-face), including IE6 support, except that their support for font file formats is different. So for the various icons used in the site, we can try to use font to implement, this article will explain in detail this usage why do you want to make the icon font? In many web site projects, we often use a variety of transparent small icons, and then the site to be compatible with each browser, there may be multiple sizes, and even consider the need for skin changes. Then we are going to export these small icons to a variety of sizes, colors and file formats, such as Png8 alpha Transparent or PNG8 index transparency. For example, Twitter uses a variety of small icons: In this case, the use of fonts to implement the icon has many advantages: The font file is small, general 20-50kb; Easy to edit and maintain, size and color can be controlled by CSS, transparent fully compatible with IE6; how do I turn icon into a font? The key is that the icon in the design (to have a vector path, bitmap can not be converted) is perfectly restored to the font, which is not very troublesome. We're going to use

1. CSS3 using fonts to implement icon icons

Summary: We all know that each browser now supports CSS3 custom fonts (@font-face), including IE6 support, except that their support for font file formats is not the same. So for the various icons used in the site, we can try to use the font to implement, this article will explain in detail this usage

2. CSS3 sample code sharing for font and text effects

Introduction: CSS3 allows us to use custom fonts and also some nice text effects custom fonts using custom fonts need to use @font-face rules of course first you have to have a custom text file Payen s.tsung@font-face {font-family: Mydiyfont; /* Custom Font name */src:url (' Ginga.ttf '); /* Font file */}.demo

3. CSS Unicode-range specific characters using Font-face custom fonts

Introduction: First, what is Unicode-range?   A look at the name, a lot of small partners may think is something unusual, in fact, this thing is just a strange name, functional critical moment is still very useful. Unicode-range is a CSS property that is commonly used in conjunction with @font-face rules.

4. A round beautiful button code made with CSS3

Introduction: This is a circular button made with CSS3. The effect looks very simple, in fact, the production is very simple, mainly the use of radial gradient, as well as the @font-face to achieve the icon effect, of course, it also leaves no other properties of the embellishment effect, such as box-shadow production of Shadow, transition animation effect and so on.

5. CSS3 Tutorial-Fonts

Introduction: Front-end developers, how much do you know about using CSS3 Tutorial-@font-face to achieve personalized fonts? Today we introduce you to CSS3 @font-face, interested to understand the next.

6. @font-face (CSS3 property) to embed any font in a Web page _html/css_web-itnose

Summary: @font-face (CSS3 property) for embedding arbitrary fonts in Web pages

7. @font-face to draw icons in font _html/css_web-itnose

Introduction: @font-face to draw icons with fonts

8. @font-face Client uses the server-side font-style font conversion tool _html/css_web-itnose

Summary: @font-face client uses the server-side font-style font conversion tool

9. Icon@font-face those things _html/css_web-itnose

Introduction: Icon@font-face Those things

CSS3 @font-face_html/css_web-itnose

Introduction: CSS3 @font-face

"Related question and answer recommendation":

JavaScript-When using Iconfont online, multiple spaces appear to answer

HTML5-How do I use font-face-defined fonts in canvas?

Css3-css Inside Custom Fonts

JavaScript-What's the way to start loading an arbitrary type of file in the head section, like Css&js

javascript-@font-face Load custom Chinese TTF font not rendered?

Related Article

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.