{"id":6226,"date":"2016-09-12T15:53:05","date_gmt":"2016-09-12T15:53:05","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=6226"},"modified":"2016-09-12T15:53:05","modified_gmt":"2016-09-12T15:53:05","slug":"install-freetype-2-7-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2016\/09\/install-freetype-2-7-ubuntu-16-04\/","title":{"rendered":"How to install FreeType 2.7 in Ubuntu 16.04 via PPA"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-logo.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-logo.png\" alt=\"FreeType \" width=\"245\" height=\"250\" class=\"alignleft size-full wp-image-6227\" \/><\/a><\/p>\n<p>FreeType, a popular font rendering engine, has reached the 2.7 release with a new default mode for bytecode hinting: Subpixel hinting.<\/p>\n<blockquote><p><i>In case you are already using subpixel hinting (for example, by using the \u2018Infinality patches\u2019 as provided by some GNU\/Linux or BSD distributions, or directly from bohoomil.com), be noted that the new mode might provide subtle differences; the code was simplified to make it much faster. If you are used to the old full-pixel hinting, you will see many rendering changes. If you really dislike them, you can disable them at compile time or using the new FREETYPE_PROPERTIES environment variable.<\/i><\/p><\/blockquote>\n<p>The new release also has improvements to its smooth rasterizer to make it about 20% faster, fixes to fuzzer, handling of raw CID fonts, and various other bug fixes and improvements. See details at <a href=\"https:\/\/www.freetype.org\/index.html#news\" target=\"_blank\">FreeType.org<\/a>.<\/p>\n<h4>Install FreeType 2.7 in Ubuntu 16.04:<\/h4>\n<p>The Ubuntu 16.04 build has been made into PPA, available for install\/upgrade by following the steps below:<\/p>\n<p>1. Open terminal (Ctrl+Alt+T) and run command to add the <a href=\"https:\/\/launchpad.net\/~no1wantdthisname\/+archive\/ubuntu\/ppa\" target=\"_blank\">PPA repository<\/a>:<\/p>\n<pre style=\"border:none;\">sudo add-apt-repository ppa:no1wantdthisname\/ppa<\/pre>\n<p><i>Type in your password (no visual feedback) when it asks and hit Enter.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-ppa.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-ppa-600x80.png\" alt=\"freetype-ppa\" width=\"600\" height=\"80\" class=\"aligncenter size-large wp-image-6228\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-ppa-600x80.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-ppa-450x60.png 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-ppa.png 748w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. To upgrade from a previous release, just launch <b>Software Updater<\/b> and you&#8217;ll see the new release available in the update list:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-upgrade.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-upgrade-600x427.jpg\" alt=\"upgrade freetype\" width=\"600\" height=\"427\" class=\"aligncenter size-large wp-image-6229\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-upgrade-600x427.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-upgrade-450x320.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/09\/freetype-upgrade.jpg 677w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Or run the commands below to install or upgrade it from command line:<\/p>\n<pre style=\"border:None;\">sudo apt update && sudo apt install libfreetype6<\/pre>\n<h4>Undo:<\/h4>\n<p>Simply purge the PPA via <code>ppa-purge<\/code> will downgrade FreeType to the stock version in Ubuntu 16.04 repository:<\/p>\n<pre style=\"border:None;\">sudo apt install ppa-purge && sudo ppa-purge ppa:no1wantdthisname\/ppa<\/pre>","protected":false},"excerpt":{"rendered":"<p>FreeType, a popular font rendering engine, has reached the 2.7 release with a new default mode for bytecode hinting: Subpixel hinting. In case you are already using subpixel hinting (for example, by using the \u2018Infinality patches\u2019 as provided by some GNU\/Linux or BSD distributions, or directly from bohoomil.com), be noted that the new mode might [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1345,1379],"class_list":["post-6226","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-font","tag-freetype"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=6226"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6226\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=6226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=6226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=6226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}