• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Implementing @font-face
 

Implementing @font-face

on

  • 3,056 views

Fine typography has always been one of the stumbling points of web design. Limited at most to a handful of cross-platform specific fonts, web designers have often found it necessary to hack their way ...

Fine typography has always been one of the stumbling points of web design. Limited at most to a handful of cross-platform specific fonts, web designers have often found it necessary to hack their way into typographically nuanced territory. Technologies such as sIFR and Cufon utilize Flash and Javascript techniques to achieve typographic variety, but often at the expense of clumsy technological implementation. @font-face brings with it the hope of a standard, cross-platform, cross-browser, lightweight method for referencing font-files not found on end users' computer. In other words: it allows web designers to store fonts on their server and reference them in CSS, regardless of what fonts the user browsing the page has installed.

Statistics

Views

Total Views
3,056
Views on SlideShare
3,055
Embed Views
1

Actions

Likes
0
Downloads
4
Comments
0

1 Embed 1

http://www.jerbee.co.id 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Implementing @font-face Implementing @font-face Presentation Transcript

    • by Mohamad Agus Sya’ban
    • @font-face is a CSS rule which allows you to show a font on a Web page even if that font is not installed on the users' computer.
      • Rely on native browser rendering, the same as with web safe fonts
      • Lightweight
      • Cufon/sIFR can be a little buggy
      • It’s like taking a candy from a baby :p
      • Print stylesheet work with @font-face
      • CSS2 introduced @font-face.
      • CSS2.1 killed it.
      • CSS3 is reintroducing it.
      • Why do you need to know the history?
      • Because, it means there is actually a feature of CSS3 that internet explorer supports, albeit, differently than all other supporting browsers.
      • Here is the @font-face browser:
      • Internet Explorer (all versions): EOT
      • Safari (3.2+): TTF / OTF
      • iPhone (3.1) SVG
      • Chrome (all versions): SVG ( TTF / OTF added 25th Jan 2010)
      • Firefox (3.5+): TTF / OTF (. WOFF added 3.6)
      • Opera (10+) TTF / OTF
      • Did I mention it before
      • that using @font-face is easy?
      • Well, you simply include a rule in your style sheet, and reference to the font files
      • <a-remote-font-name>  
      • Specifies a font name that will be used as font face value for font properties.
      • <source> 
      • URL for the remote font file location, or the name of a font on the user's computer in the form local(&quot;Font Name&quot;).
      @font-face { font-family: <a-remote-font-name>; src: <source>;   }
      • Then, if you want the font to appear in the H1, for example,
      • use:
      @font-face { font-family: MyriadPro; src: url('/MyriadPro.eot'); src: local(Myriad Pro'), url('/MyriadPro') format('opentype'), url(‘/MyriadPro') format('svg') } h1 { font-family: MyriadPro, Arial, Verdana, Serif; } Note: The above example uses some fall-back options in case @font-face isn't supported.
      • http://177designs.com/
      • http://jigowatt.co.uk/
      • http://speaktheweb.org/
      • http://forabeautifulweb.com/
      • The only thing that matters now is
      • we need font-kit to implement @font-face .
      • There are a lot of online generators
      • e.g.
      • http://www.fontsquirrel.com/fontface/generator
      • Or you can grab some free kits here:
      • http://www.fontsquirrel.com/fontface
      • Fonts must have a Web-font licence! Check the Web site you are downloading or purchasing the font from, or the documentation that comes with the font.
      • Sources:
      • http://www.aban.web.id/mengimplementasikan-font-face/
      • http://www.miltonbayer.com/font-face/
      • http://www.unmatchedstyle.com/news/practical-steps-for-using-font-face-in-your-websites-now.php