{"id":25084,"date":"2022-08-06T19:56:58","date_gmt":"2022-08-06T18:56:58","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=25084"},"modified":"2022-10-07T16:40:36","modified_gmt":"2022-10-07T15:40:36","slug":"linux-snap-applications-error-with-fonts-only-rectangles-are-displayed","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/25084\/linux-snap-applications-error-with-fonts-only-rectangles-are-displayed\/","title":{"rendered":"Linux: Snap applications, error with fonts, only rectangles are displayed"},"content":{"rendered":"<p>Font is not displayed in Snap applications? A broken font cache is the cause!<\/p>\n<p><!--more--><\/p>\n<p>I have installed some applications in my openSuse Linux with Snap. Usually things that were not available directly from the package sources, e.g. Handbrake. Here I now had the problem that the font display did not work anymore. In all Snap applications only rectangles were displayed. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/08\/snap_font_1.png\" alt=\"\" width=\"552\" height=\"316\" class=\"aligncenter size-full wp-image-25081\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/08\/snap_font_1.png 552w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/08\/snap_font_1-300x172.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/p>\n<p>The problem in this case is the font cache, which somehow got broken. This seems to happen more often.<\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/_n2J40xCQH0\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>The following commands can be used to clear the cache.<\/p>\n<pre>\r\nfc-cache -r\r\nrm ~\/.cache\/fontconfig\/*\r\nsudo rm -f \/var\/cache\/fontconfig\/*\r\n<\/pre>\n<p>Afterwards it worked again.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/08\/snap_font_2.png\" alt=\"\" width=\"569\" height=\"372\" class=\"aligncenter size-full wp-image-25083\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/08\/snap_font_2.png 569w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/08\/snap_font_2-300x196.png 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Font is not displayed in Snap applications? A broken font cache is the cause!<\/p>\n","protected":false},"author":1,"featured_media":18426,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[],"class_list":["post-25084","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/25084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=25084"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/25084\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/18426"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=25084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=25084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=25084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}