{"id":882,"date":"2010-04-06T13:31:45","date_gmt":"2010-04-06T17:31:45","guid":{"rendered":"http:\/\/sahd.lamafam.org\/?p=882"},"modified":"2010-04-06T21:54:22","modified_gmt":"2010-04-07T01:54:22","slug":"installing-profont-on-debian","status":"publish","type":"post","link":"https:\/\/sahd.lamafam.org\/?p=882","title":{"rendered":"Installing ProFont on Debian"},"content":{"rendered":"<p>I wish I could say it was a rewarding experience, alas, I cannot.  At least not without descending into maniacal laughter for a few moments.<\/p>\n<p>One of my personal quirks is an inability to let something go.  Especially if it&#8217;s computer related.  Being unable to just let-it-go has it&#8217;s pluses as minuses.  On the plus side, I&#8217;ve solved some pretty tricky computer related problems and learned some interesting lessons along the way.  On the minus side, I can waste hours working the problem, finding a solution and feel like I&#8217;ve wasted that time. <\/p>\n<p>This experience goes in the minus column.<\/p>\n<p><!--more--><\/p>\n<p>That said, I figure I&#8217;ll just pass this along so that some other poor sap doesn&#8217;t get caught up in the mess I got caught in.  If I can save someone a few hours from their life, I suppose I&#8217;ll have salvaged something.  Hopefully they find it prior to wasting hours of their life on the problem.<\/p>\n<p>To install ProFont, untar it into a `\/usr\/local\/share\/fonts\/profont&#8217; directory. Then zip all the files using gzip:<\/p>\n<pre><code>gzip \/usr\/local\/share\/fonts\/profont\/*\n<\/code><\/pre>\n<p>Now, as root, create the file <code>\/etc\/fonts\/local.conf<\/code> and fill it with the following gibberish:<\/p>\n<pre><code>&lt;?xml version=\"1.0\"?&gt;\n&lt;!DOCTYPE fontconfig SYSTEM \"fonts.dtd\"&gt;\n&lt;fontconfig&gt;\n  &lt;selectfont&gt;\n    &lt;acceptfont&gt;\n      &lt;pattern&gt;\n        &lt;patelt name=\"family\"&gt;&lt;string&gt;ProFont&lt;\/string&gt;&lt;\/patelt&gt;\n      &lt;\/pattern&gt;\n    &lt;\/acceptfont&gt;\n  &lt;\/selectfont&gt;\n&lt;\/fontconfig&gt;\n<\/code><\/pre>\n<p>This is important because this file makes the font visible to the fontconfig subsystem.  The crux of the problem is that bitmapped fonts, what ProFont is, are disabled by default.  Finally, as root, enter the command:<\/p>\n<pre><code>fc-cache -fv\n<\/code><\/pre>\n<p>Watch the output.  Check for a line with the &#8216;profont&#8217; directory in it and make sure that it does not read <code>0 fonts, 1 dir<\/code> at the end.  If it does, go back up a couple of paragraphs and try again.  In my case, it read <code>7 fonts, 1 dir<\/code> and it seems likely that&#8217;s what your output should be as well.  Unless you&#8217;ve removed some of the sizes, or added them.<\/p>\n<p>Do NOT put this file into <code>\/etc\/fonts\/conf.avail<\/code> as a numbered file.  Do NOT put this file into <code>\/etc\/fonts\/conf.d<\/code>.  Do NOT monkey with the <code>xset<\/code> command- it will not get you anywhere.  Do NOT bother with <code>mkfontdir<\/code>.  Do NOT bother <code>fonts.dir<\/code>, <code>fonts.alias<\/code> or <code>encodings.dir<\/code> files.`  I&#8217;m sure there are some other things that you DON&#8217;T need to bother with- I&#8217;ve just forgotten them at this point.<\/p>\n<p>One last thing.  If you&#8217;re using ROXTerm as your terminal emulator and the font doesn&#8217;t look right after selecting it, close down that terminal and restart it. Not X itself, just the terminal.  On my system, the spacing was completely botched when I first selected it and I was just about to stick my head through my monitor.  Fortunately, my hands slamming down on the keyboard closed my terminal, didn&#8217;t damage my keyboard and distracted me from the head-through-monitor thing.  When I opened a new one terminal, everything looked just fine.<\/p>\n<p>I was hoping for a sense of relief.  Instead, all I&#8217;ve got is this blogpost.<\/p>\n<p>UPDATE:  If you try to install something like the proggy font, make sure you unzip the &#8216;pcf&#8217; file- don&#8217;t leave it in the <code>gz<\/code> file.  For some reason <code>fontconfgi<\/code> doesn&#8217;t like it that way.  Everything from above still applies. Although, truth be told, the TTF version works better on my setup and none of the config file fiddling is needed.  Just install the files to the directory and then us the <code>fc-cache<\/code> command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wish I could say it was a rewarding experience, alas, I cannot. At least not without descending into maniacal laughter for a few moments. One of my personal quirks is an inability to let something go. Especially if it&#8217;s computer related. Being unable to just let-it-go has it&#8217;s pluses as minuses. On the plus [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[10,58,56,55,57],"class_list":["post-882","post","type-post","status-publish","format-standard","hentry","category-computers","tag-debian","tag-fontconfig","tag-fonts","tag-profont","tag-terminus"],"_links":{"self":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts\/882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=882"}],"version-history":[{"count":2,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts\/882\/revisions"}],"predecessor-version":[{"id":1596,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=\/wp\/v2\/posts\/882\/revisions\/1596"}],"wp:attachment":[{"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sahd.lamafam.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}