{"id":38,"date":"2011-05-02T12:12:24","date_gmt":"2011-05-02T16:12:24","guid":{"rendered":"http:\/\/www.jintrang.com\/who-is-hu\/?p=38"},"modified":"2011-10-25T09:49:16","modified_gmt":"2011-10-25T13:49:16","slug":"basic-overview-of-web-typography","status":"publish","type":"post","link":"https:\/\/www.jintrang.com\/who-is-hu\/2011\/05\/basic-overview-of-web-typography\/","title":{"rendered":"Basic Overview of Web Typography"},"content":{"rendered":"<p>Typography as an art form has come a long way from its usage in print. As web technology continues to advance, so has typography in its role on the web. Knowing the fundamentals of typography is important to designers because effective designs stems from good typography practices. Since typography is a the complex subject, I will focus on some basics of typography, web typography and its usage on the web.<\/p>\n<p><em><strong>What is the difference between a font and typeface?<\/strong> <\/em><br \/>\nThe terms font and typeface are often used interchangeably in design. A font means one style or weight (Arial Bold or Arial Regular). A typeface refers to a family of fonts (Helvetica Regular, Helvetica Bold, Helvetica Italic, Helvetica Black, etc.)<\/p>\n<p>Two of the more common typefaces classifications are serif or sans-serif. Serif typefaces are distinguished by a short line of finishing stroke at the end of a letter&#8217;s stem or stroke. Sans-serif letters are the opposite, no finishing strokes or lines.<\/p>\n<p>Understanding the basic anatomy of a letter is the beginning of what typography is. Some terms in which you will often encounter include: ascender, baseline, cap height, descender, stem, stroke, and x-height. Some definitions that web designers should also understand are: weight, line height, rag, alignment, widows and orphans. Knowing these terms can help designers\/developers choose a typeface and how to effectively style content on the web. Fonts.com provides a <a href=\"http:\/\/www.fonts.com\/AboutFonts\/Glossary\/index.htm\">collection of typographic terms<\/a> in their glossary section.<\/p>\n<p>In the past, designers could only use web safe typefaces to display their content. Web safe typefaces vary on different operating systems. For example, this <a href=\"http:\/\/www.ampsoft.net\/webdesign-l\/WindowsMacFonts.html\" target=\"_blank\">list of web safe typefaces<\/a> is my go-to guide for font comparisons in windows and macs. Now, there are many ways to display custom fonts. Some popular practices include standard image replacement techniques like Phark Image Replacement and advanced image replacement techniques like sIFR and cuf\u00f3n.<\/p>\n<p><strong>Phark Image Replacement:<\/strong><br \/>\nThis standard technique is accomplished by using a defined height and width to set a container element (example: DIV) that also has a background image set to it. Setting the CSS property of text-indent to -9999px will push the start of the text off the visible area of the screen. Some pros of this widely used technique are 1) it does not create unnecessary scroll bars and 2) successfully makes the text disappear onscreen for viewers, but remains accessible for search engine.  The only con to this technique is that when images are turned off and CSS is still enabled, viewers would not be able to see anything.<\/p>\n<p>HTML:<br \/>\n<code>&lt;div id=\"logo\"&gt;<br \/>\n        Website Logo<br \/>\n&lt;\/div&gt;<\/code><\/p>\n<p>CSS:<br \/>\n<code>div.logo {<br \/>\n        width: 200px;<br \/>\n        height: 100px;<br \/>\n        background: url(\"images\/logo.jpg\");<br \/>\n        text-indent: -9999px;<br \/>\n}<\/code><\/p>\n<p>To compare the pros and cons of the other standard and advanced CSS image replacement techniques, please check out this <a href=\"http:\/\/css-tricks.com\/css-image-replacement\/\" target=\"_blank\">excellent post<\/a> by CSS-Tricks.<\/p>\n<p>With the launch of CSS3, embedding high quality custom fonts has never been easier with @font-face. However, you must own or have purchased the license of the fonts before you can embed them.<\/p>\n<p>Basic syntax for @font-face:<br \/>\n<code>@font-face {<br \/>\nfont-family: Chunkfive;<br \/>\nsrc: url('Chunkfive.otf');<br \/>\n}<\/code><\/p>\n<p>You can then build a font stack using the new embedded font.<br \/>\n<code>font-family: Chunkfive, Georgia, Palatino, Times New Roman, serif;<\/code><\/p>\n<p>Designers can find and download free custom fonts on websites such as <a href=\"http:\/\/www.fontsquirrel.com\">Font Squirrel<\/a> or through <a href=\"http:\/\/www.google.com\/webfonts\">Google&#8217;s new directory of web fonts<\/a>. One of the first websites to team up with font foundries to provide font embedding services is <a href=\"http:\/\/typekit.com\/\">Typekit<\/a>. There is a trial plan for those interested in checking it out and prices per year start at $24.99 for licenses to 5 fonts.<\/p>\n<p>For more details about @font-face, please check out this SixRevisions&#8217; <a href=\"http:\/\/sixrevisions.com\/css\/font-face-guide\/\">resource page<\/a>.<\/p>\n<p>There are many resources on the topic of print and web typography. Learning the basics of typography will help you understand how to effectively design and develop the content of a web page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Typography as an art form has come a long way from its usage in print. As web technology continues to advance, so has typography in its role on the web. Knowing the fundamentals of typography is important to designers because effective designs stems from good typography practices. Since typography is a the complex subject, I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-professional"],"_links":{"self":[{"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":4,"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/posts\/38\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jintrang.com\/who-is-hu\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}