{"id":154,"date":"2019-07-23T20:57:11","date_gmt":"2019-07-23T12:57:11","guid":{"rendered":"https:\/\/www.book11111.com\/?p=154"},"modified":"2019-07-27T21:27:01","modified_gmt":"2019-07-27T13:27:01","slug":"better-web-typography-in-13-simple-steps","status":"publish","type":"post","link":"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/","title":{"rendered":"Better web typography in 13 simple steps"},"content":{"rendered":"\n<p>Better\nweb typography in 13 simple steps<\/p>\n\n\n\n<p>By&nbsp;Yves Peters&nbsp;March 07, 2018&nbsp;Web\ndesign&nbsp;&nbsp;<\/p>\n\n\n\n<p>Web\ntypography is not as daunting as you may think. One can go a long way with a\nfew basic tips.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"365\" src=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips.jpg\" alt=\"\" class=\"wp-image-155\" srcset=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips.jpg 650w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips-300x168.jpg 300w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips-200x112.jpg 200w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips-400x225.jpg 400w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips-600x337.jpg 600w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<p>With&nbsp;web\nfonts&nbsp;natively supported in almost all browsers, and more and more\ntypographic features being implemented in the latest versions of HTML and CSS,\na bright new era of increasingly sophisticated web typography is upon us. This\nmeans web designers need to get (re)acquainted with the rules of classic\ntypesetting \u2013 but it doesn\u2019t end there.<\/p>\n\n\n\n<p>Whereas\nprint typography is static, web typography is a fluid medium. More than simply\nlearning how to achieve a specific look, designers have to\ntackle&nbsp;responsive typography, and be able to predict the end result across\ndifferent browsers and devices. Here are some of the basic dos and don\u2019ts of\ntypography, specifically applied to the web.<\/p>\n\n\n\n<p>01.\nFind out what your fonts can do<\/p>\n\n\n\n<p>Check\nyour font has all the characters and features you need<\/p>\n\n\n\n<p>The\nvery first thing you must do is check the capabilities of the fonts you are\ngoing to use. All fonts are created equal, but some fonts are more equal than\nthe others.&nbsp;Unicode encoding&nbsp;means fonts can hold literally tens of\nthousands of glyphs, and the&nbsp;OpenType font format&nbsp;supports numerous\nfeatures like small caps, old style numerals, discretionary ligatures and\ncontextual alternates.<\/p>\n\n\n\n<p>Yet any\nfont is only as good as the type designer who built it. What use are all those\ntypographic niceties if the designer neglected to draw the necessary characters\nor failed to code the relevant features? Creating professional fonts takes an\nenormous amount of time and effort, and some designers are not prepared to go\nall the way.<\/p>\n\n\n\n<p>This is\nwhy it is very important to check the character set and the features of a font before\nincorporating it in your web design. A font is like a toolbox; if a crucial\ntool is missing, you won&#8217;t get far \u2013 if there is a screwdriver, a saw and\npliers but no hammer, not a lot of hammering will get done.<\/p>\n\n\n\n<p>02.\nSubset cleverly<\/p>\n\n\n\n<p>Font\nfallbacks happen on a character by character basis. As soon as character is\nmissing in the specified font, the fallback system will use the corresponding\ncharacter from the next font in the list, then switch back to the original\nfont.&nbsp;<\/p>\n\n\n\n<p>This\ntechnique can be used in an unconventional way with surprising results. If, for\nexample, the character set of a font has no old style figures, find a\ncorresponding font that has them. Subset it, leaving only the desired numerals,\nand put it first in the fallback list. All numerals in the text will then be\nset in that old style figure subset, and the rest of the text in the regular\nfont. This prevents you from having to format numerals separately and keeps\nyour text file clear of unnecessary HTML tags.<\/p>\n\n\n\n<p>03.\nFigure out numerals<\/p>\n\n\n\n<p>Most\nprofessional quality fonts have several sets of numerals, each with a specific\nuse. For example:<\/p>\n\n\n\n<p>Tabular:&nbsp;Each\ncharacter occupies the same amount of space, so they will line up in vertical\ncolumns<\/p>\n\n\n\n<p>Proportional:&nbsp;Character\nwidths vary according to their design<\/p>\n\n\n\n<p>Old\nstyle:&nbsp;Figures mimic the lowercase characters with an x-height, ascenders\nand descenders; blend perfectly with mixed-case text<\/p>\n\n\n\n<p>Lining:\nMeant to be used in numerical matter or in combination with all-caps text<\/p>\n\n\n\n<p>04.\nDon\u2019t fake styles<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"595\" height=\"325\" src=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/Don\u2019t-fake-styles.jpg\" alt=\"\" class=\"wp-image-156\" srcset=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/Don\u2019t-fake-styles.jpg 595w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/Don\u2019t-fake-styles-300x164.jpg 300w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/Don\u2019t-fake-styles-200x109.jpg 200w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/Don\u2019t-fake-styles-400x218.jpg 400w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/figure>\n\n\n\n<p>Typeface:\nFF Ernestine by Nina Stoessinger<\/p>\n\n\n\n<p>CSS\nenables you to fake a number of things. If there is no bold variant of your\nfont the&nbsp;&lt;b&gt;&nbsp;tag will artificially embolden the text by\nrendering it double with a slight lateral translation. Applying\nthe&nbsp;&lt;i&gt;&nbsp;tag to a font without an italic style will digitally\nslant the characters. The resulting distorted letters invariably look dismal.\nGenerally speaking, you want to define all your text formatting in the CSS\nfile, and avoid local character formatting as much as possible.<\/p>\n\n\n\n<p>05. &#8230;\nbut when you do, fake well<\/p>\n\n\n\n<p>Faking\nsmall caps when they are missing in the character set always makes them look\ntoo thin by comparison with the surrounding text. When the type family has a\nsemi-bold variant, or the difference between the regular and bold weight is\nmoderate, use that bolder weight for the small caps to adjust the darkness of\nthe text. Don\u2019t forget to give the small caps a little extra character space.<\/p>\n\n\n\n<p>06. Be\ncareful with copy-pasting text<\/p>\n\n\n\n<p>You can\nsometimes find words in web pages with illegible character strings where there\nshould have been an accented or other special character. This occurs when text\nis copied from text editing software using a character encoding other than\nUTF-8. Character encoding systems map all glyphs in a given character set to\nfacilitate the transmission of data (generally numbers or text) through\ntelecommunication networks or for data storage.<\/p>\n\n\n\n<p>As HTML\nworks with UTF-8 it will misinterpret copy-pasted text from any other encoding\nsystem, turning specific characters into bizarre combinations of random letters\nand signs. Furthermore certain content management systems will not only copy\nthe text but also the formatting, causing unpredictable results. The best way\nto avoid this is to convert the copied text to text-only format in a simple\ntext editor, then copy it from there and paste it into the CMS.<\/p>\n\n\n\n<p>07.\nLearn your HTML entities<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"595\" height=\"325\" src=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/HTML-entities.png\" alt=\"\" class=\"wp-image-157\" srcset=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/HTML-entities.png 595w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/HTML-entities-300x164.png 300w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/HTML-entities-200x109.png 200w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/HTML-entities-400x218.png 400w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/figure>\n\n\n\n<p>Typeface:\nFF Spinoza by Max Phillips<\/p>\n\n\n\n<p>Looking\nat your keyboard, you may not realise what a wealth of characters is available.\nMany of them are defined by&nbsp;HTML entities, so it is a good idea to\nmemorise the most common ones and have an overview handy when typesetting for\nthe web.&nbsp;<\/p>\n\n\n\n<p>A\nlowercase x is not the same as a multiplication sign, the trademark sign is not\nsimply a raised capital T and M, and a floating acute accent will not do for an\napostrophe. For more detail on this, take a look at our article\non&nbsp;typographic mistakes everyone makes.&nbsp;<\/p>\n\n\n\n<p>08.\nDefine relationships, not absolute dimensions<\/p>\n\n\n\n<p>A big\nadvantage of text on the web is that it can be resized by the user. If text is\ndefined in pixels, resizing a web page may cause discrepancies in the relative\nsizes of the different text styles and, for example, body text may end up\nbigger than the headlines. It is crucial for all text sizes to be defined in\nems in relation to the standard body text size. This ensures that all text in a\nweb page is resized accordingly, respecting the relationships between the\ndifferent text sizes.<\/p>\n\n\n\n<p>09.\nTake control over line breaks<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"595\" height=\"325\" src=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/1.jpg\" alt=\"\" class=\"wp-image-158\" srcset=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/1.jpg 595w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/1-300x164.jpg 300w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/1-200x109.jpg 200w, http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/1-400x218.jpg 400w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/figure>\n\n\n\n<p>Typeface:\nFF Spinoza by Max Phillips<\/p>\n\n\n\n<p>Resizing\nthe browser window makes text columns go narrower or wider, and end-users can\nalso alter text sizes. This could make you believe that you have no control\nover line breaks. Yet when you look beyond the desired end result and\nunderstand what exactly you want to achieve there are certain aspects that can\nbe steered.<\/p>\n\n\n\n<p>Line\nbreaks occur at the end of paragraphs that are wrapped with\na&nbsp;&lt;p&gt;&nbsp;or&nbsp;&lt;div&gt;tag. In all other cases, line breaks\nare very seldom inserted solely for the purpose of having the next word start\nat the beginning of the next line, so use the&nbsp;&lt;br&gt;&nbsp;tag\nsparingly. The most common reason is to keep two or more words together.<\/p>\n\n\n\n<p>10.\nSpace with care<\/p>\n\n\n\n<p>Advertisement<\/p>\n\n\n\n<p>The\nnon-breaking space is not the only special space character available in HTML.\nAn em space is as wide as the type size, creating a perfectly square separator.\nThe en space is half its width. Very useful in tabular material is the figure\nspace, which takes up as much room as the numerals in the font, while the\npunctuation space is as wide as the dot or comma. Thin spaces can be used\nbetween the dot and the next letter in abbreviated names, and hair spaces to\ndetach em dashes from the neighbouring characters. And then there\u2019s the\nthree-per-em space, the four-per-em space, the six-per-em space \u2026<\/p>\n\n\n\n<p>Reading\nis as much about the space within and between letters as it is about the black\nof the letters themselves. The correct hierarchy is that the space between\nletters is smaller than the space between words, and the space between words is\nsmaller than the space between lines of text. Avoid adding space between\nletters as this causes words to break up and hinders legibility. Judiciously\nincreasing letter spacing is only warranted for text in very small sizes. On\nthe contrary text in display sizes often benefits from tighter tracking, but\nhere as well don\u2019t overdo it.<\/p>\n\n\n\n<p>Advertisement<\/p>\n\n\n\n<p>Full\njustification has an adverse effect on the appearance of text. The process of\njustifying the words to fit the line length increases the spacing between\nwords, making those word spaces vary wildly between subsequent text lines. This\ngives the text an uneven appearance and creates unsightly gaps between words in\nsome lines. Justified left\/ragged right is the preferred alignment for ease of\nreading.<\/p>\n\n\n\n<p>Besides\ncharacter spacing and word spacing, line spacing also influences legibility.\nLines of text that are too close to each other create a dense text image that\nis hard to decipher. If on the contrary the line spacing is too generous the\nreader has difficulties finding the correct next line after a line break.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Better web typography in 13 simple steps By&nbsp;Yves P [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Better web typography in 13 simple steps - \u6c88\u8d85\u7684\u535a\u5ba2<\/title>\n<meta name=\"description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<link rel=\"canonical\" href=\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Better web typography in 13 simple steps - \u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<meta property=\"og:url\" content=\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-23T12:57:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-27T13:27:01+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\">\n\t<meta name=\"twitter:data1\" content=\"8 \u5206\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/116.62.123.213\/#website\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/116.62.123.213\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips.jpg\",\"contentUrl\":\"http:\/\/116.62.123.213\/wp-content\/uploads\/2019\/07\/basic-tips.jpg\",\"width\":650,\"height\":365},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#webpage\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/\",\"name\":\"Better web typography in 13 simple steps - \\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#primaryimage\"},\"datePublished\":\"2019-07-23T12:57:11+00:00\",\"dateModified\":\"2019-07-27T13:27:01+00:00\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"breadcrumb\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/\",\"name\":\"Better web typography in 13 simple steps\"}}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#webpage\"},\"author\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"headline\":\"Better web typography in 13 simple steps\",\"datePublished\":\"2019-07-23T12:57:11+00:00\",\"dateModified\":\"2019-07-27T13:27:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"image\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#primaryimage\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/better-web-typography-in-13-simple-steps\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\",\"name\":\"\\u6c88\\u8d85\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/116.62.123.213\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"caption\":\"\\u6c88\\u8d85\"},\"logo\":{\"@id\":\"http:\/\/116.62.123.213\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":1,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":159,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions\/159"}],"wp:attachment":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}