background preloader

Web fonts with @font-face

Web fonts with @font-face
Home / CSS3 Previews / Web fonts with @font-face Not exactly a feature which is new to CSS3, @font-face was first proposed for CSS2 and has been implemented in Internet Explorer since version 5! However, their implementation relied on the proprietary Embedded Open Type (.eot) format, and no other browsers decided to use this format. With the release of Safari 3.1, however, website makers can use any licensed TrueType (.ttf) or OpenType (.otf) font in their pages. To use web fonts, each form of the font family must be declared using the @font-face rule; for example, to use both regular and italic forms of Jos Buivenga’s Delicious font, you would put the following in your stylesheet: Then call it using font-family: Users of Safari 3.1 will see this text rendered with the Delicious font, with this part in Delicious Bold. For anyone not viewing in Safari 3.1 – or who doesn’t already have the font installed – here’s a reference image:

@font-face in IE: Making Web Fonts Work All Hallows’ Eve seems the perfect time for something a little spooky. Getting @font-face working in IE may just be spooky enough. As you probably know @font-face already works in Safari 3 via WebKit and is supported in the latest Firefox 3.1 beta. With IE, that means around 75% of the world audience could see custom typefaces today if their EULAs allowed it. Fortunately, there are good free faces available to us already, as well as some commercial faces that permit embedding. Before we get into the nitty-gritty of making this work, which you can skip to if you wish, I thought a little history and a brief summary of the current status of the web fonts debate might be useful. Web Fonts: Then & Now Web fonts have been with us for a decade. Since the debate opened up, the web and type communities have both been busy discussing how the future will unfold. Recently, Bert Bos of the W3C paid a visit to the ATypI Conference in St Petersburg to meet with type designers face to face. That’s all!

FontStruct | Build, Share, Download Fonts wordmark.it W3C - CSS Fonts Module L3 Abstract This CSS3 module describes how font properties are specified and how font resources are loaded dynamically. The contents of this specification are a consolidation of content previously divided into CSS3 Fonts and CSS3 Web Fonts modules. Status of this document This section describes the status of this document at the time of its publication. This document was produced by the CSS Working Group as a Candidate Recommendation. A Candidate Recommendation is a document that has been widely reviewed and is ready for implementation. Publication as a Candidate Recommendation does not imply endorsement by the W3C Membership. This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. See the section CR Exit Criteria for details on advancing this specification to W3C Recommendation. Features at risk Table of Contents 1 Introduction A font provides a resource containing the visual representation of characters. 2 Typography Background Ligature example weight width

Free Copy & Paste JavaScripts and other Scripts Add JavaScripts, CGI and other scripts to your Web pages by just copying and pasting the code into your Web pages. Use codes that you will find on JavaScript sites or here on this site. Create a Back ButtonCreate a back button right on your Web page. This button, when clicked, will take the reader back to the page they were on before they came to your page. Simple Scripts for Web PagesSimple javascripts that you can add to your Web pages in minutes, no knowing coding required. Background Audio ScriptUsing this script your site's readers can choose from different music you offer on your site and listen to it in the background while they read your site. Calculator Script - Copy and Paste JavaScriptCalculator script for you to copy and paste into your Web pages. Disable No Right Click Scripts"Disable no right click scripts that globally override the onclick onmousedown or oncontextmenu events." Don't Right Click on My Page codeThis code will keep people from steeling your pictures.

@font-face syntax « Paul Irish Bulletproof Let me introduce you to the best way to do your @font-face definitions: This is the Fontspring @font-face syntax. I’ll circle back to why this is the best possible solution but let’s first review the other techniques’ weaknesses. Of course, the problem at the center of this is that IE needs an .eot font, and the other browsers must take a .ttf or .otf. May 12th, 2010. Okay, let’s see what we got here… Conditional comments (via) Ugh. Double declarations (via) The problem here is that, as Andrea points out, IE will actually download the .otf file. Because after all, IE doesn’t understand the format hint, right? GraublauWeb.otf’)%20format(‘opentype Oops, looks like someone forgot a ? Mo’ Bulletproofer (via) Richard Fink proposed this alternate syntax actually as a response to this post, but I’ve included it back here. The local reference Much more concise and clean. The other benefit.. if it just so happens that a user actually has your custom font installed, this’ll save them the download. Demo

16 Best Web Design Galleries for Inspiration Web design galleries offer designers and developers creative inspiration on their own designs. By aggregating the top web designs on the web, a gallery serves as a prime spot for getting those creative juices flowing. In this article you’ll find 16 of the best and most popular web design galleries ranked in order by the number of votes they garnered on a poll that was published earlier this month. On instances where there was a tie, the site with the higher Alexa rank received a higher ranking. 16. Nearing almost 4 years of operation, Web Creme is one of the more matured website showcases on the web. FAVEUP is a design inspiration gallery that has a CSS Websites, Flash Websites, Business Cards, and Logo section. Created and administered by New-media designer John Mills, CSSREMIX is a thumbnail-style web design gallery featuring some of the best designs on the web. 13. Design Shack currently features over 1,800 websites in their CSS Gallery. 12. 11. 10. 9. 8. 7. cssheaven.com 6. 5. 4. 3.

Comment utiliser une fonte «non-standard» sur un site Web ? - Alsacréations Il est de notoriété publique que l'usage des fontes sur le Web est limité à une poignée de fontes non pas standardisées, mais suffisamment répandues pour pouvoir être utilisées sans trop de risques. Et cela pour une raison très simple: la police de caractères que l'on souhaite utiliser doit être présente sur le système de l'utilisateur pour être utilisée par le navigateur. Quand @font-face tombe à l'eau CSS 2 (publié en 1998) comprenait un mécanisme qui autorisait les auteurs de pages web à proposer une fonte au téléchargement, fonte qui serait ensuite utilisée dans la page. Il s'agit de la règle @font-face. Mais celle-ci a été peu implémentée par les navigateurs, ou alors partiellement. Pendant longtemps, le seul navigateur à avoir un support tout relatif de @font-face était Internet Explorer. Quand @font-face revient En réalité, @font-face n'a pas été supprimée de CSS, elle a juste été repoussée à CSS 3. Support de @font-face par les navigateurs Google Web Fonts Font Squirrel

=CSS @Ten: The Next Big Thing | A List Apart CSS is ten years old this year. Such an anniversary is an opportunity to revisit the past and chart the future. CSS has fundamentally changed web design by separating style from structure. Article Continues Below Many CSS properties, both old and new, deal with text: they describe text color, position, style, and direction. Consider the fine designs in the CSS Zen Garden. A background image! There are many reasons why background images should not be used to convey text. There is a way: web fonts. A brief history of web fonts#section1 This is not a new idea. Better news#section2 It’s a pleasure for me to announce that web fonts are back! Screenshot of web page using real TrueType fonts. Screenshot of web page using real TrueType fonts. Screenshot of web page using real TrueType fonts. The PDF (and image) examples shown in this article have been produced by Prince 6, a web-to-PDF-through-CSS renderer. (Disclosure: I’m on the board of YesLogic, the company behind Prince. You can help!

11 Classic CSS Techniques Made Simple with CSS3 We've all had to achieve some effect that required an extra handful of divs or PNGs. We shouldn't be limited to these old techniques when there's a new age coming. This new age includes the use of CSS3. In today's tutorial, I'll show you eleven different time-consuming effects that can be achieved quite easily with CSS3. I'm sure you've heard of CSS in general. CSS3 isn't that much different, in terms of syntax; however, the power of CSS3 is much greater. Here's what the official (or at least, what I consider official) website of CSS3, css3.info, has to say about CSS3: CSS3 is the new kid in the stylesheet family. Here are the 11 techniques that I'll be showing you how to recreate with CSS3. Probably my favorite on of this list, rounded corners provide a developer with so many options. You can simulate rounded corners by using four extra divs or by using JavaScript. The classical method uses jQuery along with a JavaScript plugin called Corners. View the demo. View the demo. View the demo.

The Ministry of Type

Related: