{"id":1927,"date":"2015-04-08T07:22:21","date_gmt":"2015-04-08T05:22:21","guid":{"rendered":"http:\/\/possiblelossofprecision.net\/?p=1927"},"modified":"2021-05-15T11:46:37","modified_gmt":"2021-05-15T09:46:37","slug":"pango-warning-failed-to-choose-a-font-expect-ugly-output","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1927","title":{"rendered":"Pango-WARNING **: failed to choose a font, expect ugly output."},"content":{"rendered":"<p>If you try to start a graphical application on a minimal Fedora or CentOS setup, e.g. via <code>ssh -X<\/code>, you might face the situation that the program actually starts up, but no font appears (or a weird one, or only squares where the letters are supposed to be). <\/p>\n<div class='content-column one_third'><div id=\"attachment_2011\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a data-rokbox href=\"wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF21.png\" data-rokbox-album=\"p1927\" data-rokbox-caption=\"virt-manager on Fedora 21 without the proper fonts installed\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2011\" style=\"float: left; margin-right: 5px;\" src=\"wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF21-150x150.png\" alt=\"virt-manager on Fedora 21 without the proper fonts installed\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-2011\" srcset=\"https:\/\/possiblelossofprecision.net\/wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF21-150x150.png 150w, https:\/\/possiblelossofprecision.net\/wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF21.png 550w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><p id=\"caption-attachment-2011\" class=\"wp-caption-text\">virt-manager on Fedora 21 without the proper fonts installed<\/p><\/div><br \/><\/div>\n<div class='content-column one_third'><div id=\"attachment_2010\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a data-rokbox href=\"wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF20.png\" data-rokbox-album=\"p1927\" data-rokbox-caption=\"virt-manager on Fedora 20 without the proper fonts installed\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2010\" style=\"float: left; margin-right: 5px;\" src=\"wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF20-150x150.png\" alt=\"virt-manager on Fedora 20 without the proper fonts installed\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-2010\" srcset=\"https:\/\/possiblelossofprecision.net\/wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF20-150x150.png 150w, https:\/\/possiblelossofprecision.net\/wordpress\/wp-content\/uploads\/2015\/04\/VirtManagerF20.png 550w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><p id=\"caption-attachment-2010\" class=\"wp-caption-text\">virt-manager on Fedora 20 without the proper fonts installed<\/p><\/div><br \/><\/div>\n<div class='content-column one_third'><div id=\"attachment_2018\" style=\"width: 160px\" class=\"wp-caption aligncenter\"><a data-rokbox href=\"wordpress\/wp-content\/uploads\/2015\/04\/FirefoxF20.png\" data-rokbox-album=\"p1927\" data-rokbox-caption=\"Firefox on Fedora 20 without the proper fonts installed\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2018\" style=\"float: left; margin-right: 5px;\" src=\"wordpress\/wp-content\/uploads\/2015\/04\/FirefoxF20-150x150.png\" alt=\"Firefox on Fedora 20 without the proper fonts installed\" width=\"150\" height=\"150\" class=\"size-thumbnail wp-image-2018\" \/><\/a><p id=\"caption-attachment-2018\" class=\"wp-caption-text\">Firefox on Fedora 20 without the proper fonts installed<\/p><\/div><br \/>\n<br \/><\/div>\n<p>If you start a program that uses <a href=\"http:\/\/en.wikipedia.org\/wiki\/Pango\">Pango<\/a>, like firefox, you get at least an error message:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ firefox \r\n(firefox:9281): Pango-WARNING **: failed to choose a font, expect ugly output.\r\n<\/pre>\n<p>The solution is simple. It&#8217;s sufficient to install the <strong>dejavu<\/strong> fonts package:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# yum install dejavu-sans-fonts.noarch dejavu-serif-fonts.noarch\r\n<\/pre>\n<p>Resources:<br \/>\n<a href=\"http:\/\/stackoverflow.com\/questions\/2568408\/pango-warning-failed-to-choose-a-font-expect-ugly-output\">http:\/\/stackoverflow.com\/questions\/2568408\/pango-warning-failed-to-choose-a-font-expect-ugly-output<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you try to start a graphical application on a minimal Fedora or CentOS setup, e.g. via ssh -X, you might face the situation that the program actually starts up, but no font appears (or a weird one, or only squares where the letters are supposed to be). If you start a program that uses Pango, like firefox, you get&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1927\">Read more &raquo;<\/a><\/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":[7],"class_list":["post-1927","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-fedora"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1927"}],"version-history":[{"count":79,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1927\/revisions"}],"predecessor-version":[{"id":2175,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1927\/revisions\/2175"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}