180 likes | 344 Views
Nasser Hadjloo. Web FONT. Hadjloo.ir. Agenda. Definitions Why do we need Web Fonts Persian Web Fonts Problem Possible Solutions How to create a Web Font How to use a Web Font. Definitions. Font: a tool to display words in the digital world
E N D
Nasser Hadjloo Web FONT Hadjloo.ir
Agenda • Definitions • Why do we need Web Fonts • Persian Web Fonts Problem • Possible Solutions • How to create a Web Font • How to use a Web Font
Definitions • Font: a tool to display words in the digital world • Character: The smallest part of a font which consists of different shape • Glyph: Different shape of a particular character like : ب – بـ - ـبـ - ـب
Definitions • Code Point: Unique code of characters • Coding: Character encoding system • Unicode: The most completed coding system of the world which includes all symbols and glyphs of all alive and dead languages of the world
Definitions • Text Render Engine: An application of which get the characters information and based on provided information, draw a shape on the screen. استانداردهای وب و بستر وب باز
Web Font WOFF: Since 2009 suggested as proposal and developed by Microsoft,Mozilla Foundation and Opera Software, currently it is becoming standard byW3C. It is almost TrueType, with some compression and metadata.
Web Font Problems • Character rendering Issue: Different fonts, are rendering different in different browsers and Text Render engines. EOT– TTF- SVG - WOFF
Web Font Problems • Browsers Render Engine: IE7 and IE8 in windows are using ClearType to render texts IE9 and FireFox 4 are using DirectWrite IE 8 Change the Windows Text Render engine to ClearType In WindowsFirefox, Chrome, Safari, Opera, and IE6 are using Grayscale Anti-aliasing CoreText in Mac
Web Font Problems • Font Size: Which glyphs included? • Font Tables: It is better no to use Kerning, Hinting and other complicated OpenType Features
Web Font Problems • Character Height: x-Height of Characters should not be long.
Possible Solutions • Why a Font is designed? PDF, Screen, Web, Print, … • A web Font should design for Web Usage only, Considering all aspects of web requirements
How to Create A Web Font • Having a healthy Font • Converting it to web font using available services • Meta Data and Web Use only • Embedding in Web page
Converting A Font to Web Font • Best Persian Web Font Generators • daFont.com • Fonts.com • FontDeck.com
Web Font Providers • Fonts.com • MyFonts.com • Webink.com • Typotheque.com • TypeKit.com • Google.com
Hinting Rendering X-Height Web Only
How To use a Web Font • Link to Font provider <link href='http://fonts.hadjloo.ir/css?family=Parsoomash+Millo&subset=Arabic' rel='stylesheet' type='text/css' /> • Include in CSS h1 { font-family: ‘ParsoomashMillo', Tahoma; }
How To use a Web Font • Embed it into your CSS @font-face { font-family: “ParsoomashMillo"; font-style: normal; src: url("Type/Parsoomash_Millo.ttf"); } @font-face { font-family: “ParsoomashMilloItalic"; font-style: italic; src: url("Type/Parsoomash_Millo_Italic.ttf"); } • Use it h1 { font-family: ‘ParsoomashMillo', Tahoma; }
Thank You • Nasser Hadjloo • www.Hadjloo.ir • Nasser@Hadjloo.ir • @Hadjloo