{"id":4829,"date":"2011-09-21T19:30:03","date_gmt":"2011-09-21T11:30:03","guid":{"rendered":"https:\/\/pinyin.info\/news\/?p=4829"},"modified":"2011-09-23T21:23:34","modified_gmt":"2011-09-23T13:23:34","slug":"google-web-fonts-and-hanyu-pinyin","status":"publish","type":"post","link":"https:\/\/pinyin.info\/news\/2011\/google-web-fonts-and-hanyu-pinyin\/","title":{"rendered":"Google Web fonts and Hanyu Pinyin"},"content":{"rendered":"<p>Back in the last century, getting Web browsers to correctly display Pinyin was such a troublesome task that I remember once even employing GIFs of first- and third-tone letters to get those to look right. So there were a whole lotta IMG tags in my text. Sure, I put the necessary info in ALT tags (e.g., &#8220;alt=&#8217;a3&#8242;&#8221;), just in case. But, still, I shudder to recall having to resort to that particular hack.<\/p>\n<p>Things are better now, though still far from ideal. Something that promises to considerably improve the situation of website viewers not all having the same font you may wish to use is CSS3&#8217;s @font-face, which allows those creating Web pages to employ fonts that are provided online. Google is helping with this through its <a href=\"http:\/\/www.google.com\/webfonts#ChoosePlace:select\">Google Web Fonts<\/a>. (Current count: 252 font families.) <\/p>\n<p>But is anything in Google&#8217;s collection capable of dealing with Hanyu Pinyin? Armed with a handy-dandy <a href=\"https:\/\/pinyin.info\/news\/2011\/pinyin-pangram-challenge\/\">Pinyin pangram<\/a>, I had a look at what Google has made available. <\/p>\n<p>Not surprisingly, most of the 29 font families marked as offering the &#8220;Latin Extended&#8221; character set failed to handle the entire Hanyu Pinyin set. The <span class=\"py\">???<\/span> group is the most likely to be unsupported at present, with third-tone vowels also frequently missing. <\/p>\n<p>Here are the Google Web fonts that <em>do<\/em> support Hanyu Pinyin with tone marks:<br \/>\n<strong>Serifs<\/strong><\/p>\n<ul>\n<li><strong>EB Garamond<\/strong> (227 KB)<\/li>\n<li><strong>Gentium Basic<\/strong> (263 KB &#8212; and about the same for each of the three accompanying styles: italic, bold, bold italic)<\/li>\n<li><strong>Gentium Book Basic<\/strong> (267 KB &#8212; and about the same for each of the three accompanying styles: italic, bold, bold italic)<\/li>\n<li><strong>Neuton<\/strong> (56 KB &#8212; and about the same for each of the five accompanying styles: italic, bold, light, extra light, extra bold)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_serif_fonts1.gif\"><img decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_serif_fonts1.gif\" alt=\"screenshot of the Pinyin fonts above\" title=\"click to enlarge: Google serif fonts for Pinyin\" width=\"505\" class=\"alignnone size-full wp-image-4885\" style=\"padding-bottom: 1.5em;\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_serif_fonts1.gif 801w, https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_serif_fonts1-176x300.gif 176w, https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_serif_fonts1-601x1024.gif 601w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/a><\/p>\n<p>Note: <\/p>\n<ul style=\"padding-bottom: 3em;\" >\n<li>Neuton has relatively weak tone marks, so I wouldn&#8217;t recommend it for Web pages aimed at beginning students of Mandarin.<\/li>\n<\/ul>\n<p><strong style=\"border-top: 1px dotted green;\">Sans Serifs<\/strong><\/p>\n<ul>\n<li><strong>Andika<\/strong> (1.4 MB)<\/li>\n<li><strong>Ubuntu<\/strong> (350 KB) &#8212; available in <em>eight<\/em> styles<\/li>\n<\/ul>\n<p><a href=\"https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_sansserif_fonts.gif\"><img decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_sansserif_fonts.gif\" alt=\"screenshot of the Pinyin fonts above\" title=\"click to enlarge: Google sans-serif fonts for Pinyin\"  width=\"505\" style=\"padding-bottom: 3em;\" class=\"alignnone size-full wp-image-4884\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_sansserif_fonts.gif 820w, https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/google_pinyin_sansserif_fonts-300x289.gif 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><\/p>\n<p>Some Ubuntu sample PDFs: <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_regular.pdf'>Ubuntu regular<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_italic.pdf'>Ubuntu italic<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_bold.pdf'>Ubuntu bold<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_bold_italic.pdf'>Ubuntu bold italic<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_light.pdf'>Ubuntu light<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_light_italic.pdf'>Ubuntu light italic<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/ubuntu_medium.pdf'>Ubuntu medium<\/a>, <a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/Ubuntu medium italic.pdf'>Ubuntu medium italic<\/a>.<\/p>\n<p><a href='https:\/\/pinyin.info\/news\/news_photos\/2011\/09\/andika.pdf'>Andika sample PDF<\/a>.<\/p>\n<p>Note: <\/p>\n<ul>\n<li>Andika&#8217;s relatively large size (1.4 MB) makes it unsuitable for @font-face use because of download time. (Its license, however, would permit someone with the time and energy to crack it open and remove lots of the glyphs not needed for Pinyin, thus reducing the size.) More fundamentally, though, I don&#8217;t much like the look of it; but YMMV. <\/li>\n<\/ul>\n<p>Since Google is likely to expand the number of fonts it offers, I&#8217;m including the list of all 29 faces I tried for this experiment, which should make it easier for those wanting to test only new fonts. (It is possible, however, that Pinyin support will be added later to some fonts that fail in this area now. If anyone hears of any such changes, please let me know.) Use of <strong>bold<\/strong> indicates Pinyin support; everything else failed.<\/p>\n<blockquote><p>\nDisplay Faces with Latin Extended (all fail)<\/p>\n<ul>\n<li>Abril Fatface<\/li>\n<li>Forum<\/li>\n<li>Kelly Slab<\/li>\n<li>Lobster<\/li>\n<li>MedievalSharp<\/li>\n<li>Modern Antiqua<\/li>\n<li>Ruslan Display<\/li>\n<li>Tenor Sans<\/li>\n<\/ul>\n<p>Handwriting Faces with Latin Extended (all fail)<\/p>\n<ul>\n<li>Patrick Hand<\/li>\n<\/ul>\n<p>Serif  Faces with Latin Extended<\/p>\n<ul>\n<li>Cardo<\/li>\n<li>Caudex<\/li>\n<li><strong>EB Garamond<\/strong><\/li>\n<li><strong>Gentium Basic<\/strong><\/li>\n<li><strong>Gentium Book Basic<\/strong><\/li>\n<li><strong>Neuton<\/strong><\/li>\n<li>Playfair Display<\/li>\n<li>Sorts Mill Goudy<\/li>\n<\/ul>\n<p>Sans Serif Faces with Latin Extended<\/p>\n<ul>\n<li><strong>Andika<\/strong><\/li>\n<li>Anonymous Pro<\/li>\n<li>Anton<\/li>\n<li>Didact Gothic<\/li>\n<li>Francois One<\/li>\n<li>Istok Web<\/li>\n<li>Jura <\/li>\n<li>Open Sans<\/li>\n<li>Open Sans Condensed<\/li>\n<li>Play <\/li>\n<li><strong>Ubuntu<\/strong><\/li>\n<li>Varela<\/li>\n<\/ul>\n<\/blockquote>\n<p>Additional resource: <a href=\"http:\/\/scripts.sil.org\/cms\/scripts\/page.php?&#038;cat_id=FontDownloads\">SIL Fonts for downloading<\/a> (including the full versions of Andika and Gentium).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back in the last century, getting Web browsers to correctly display Pinyin was such a troublesome task that I remember once even employing GIFs of first- and third-tone letters to get those to look right. So there were a whole &hellip; <a href=\"https:\/\/pinyin.info\/news\/2011\/google-web-fonts-and-hanyu-pinyin\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,113,106,28,95,32,20,19,127,105,88],"tags":[763,740,761,767,765,766,762,871,764],"class_list":["post-4829","post","type-post","status-publish","format-standard","hentry","category-chinese","category-computers","category-hanyu","category-languages","category-linguistics","category-mandarin","category-pinyin","category-romanization","category-tonal-languages","category-tone-marks","category-web-browsers","tag-andika","tag-font","tag-fonts","tag-garamond","tag-gentium","tag-neuton","tag-pinyin-font","tag-typography","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts\/4829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/comments?post=4829"}],"version-history":[{"count":37,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts\/4829\/revisions"}],"predecessor-version":[{"id":4913,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts\/4829\/revisions\/4913"}],"wp:attachment":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/media?parent=4829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/categories?post=4829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/tags?post=4829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}