{"id":194,"date":"2004-03-05T10:02:58","date_gmt":"2004-03-05T15:02:58","guid":{"rendered":"http:\/\/ywwg.com\/wordpress\/?p=194"},"modified":"2004-03-05T10:02:58","modified_gmt":"2004-03-05T15:02:58","slug":"tip-convert-mac-fonts-for-linux","status":"publish","type":"post","link":"https:\/\/ywwg.com\/wordpress\/archives\/194","title":{"rendered":"tip:  convert mac fonts for linux"},"content":{"rendered":"<p>Converting mac fonts to linux sucks.  Read on.<br \/>\n<!--more--><br \/>\nMac fonts are stored in the most inane format ever.  If you try to copy a font file from a mac you&#8217;ll probably get a 0 byte file.  That&#8217;s because mac stores fonts in two files:  the first is an empty file with the name you see, like FrankGotBoo, and the other is a hidden file that actually contains the data, called ._FrankGotBoo.  I have no idea why they have one empty file and a corresponding hidden file, but that&#8217;s the way it is.<\/p>\n<p>To convert the file to a format linux can use, get the t1utils package for your system.  Do:<\/p>\n<p>t1unmac -a ._YourFont > YourFont.pfa<br \/>\npf2afm YourFont.pfa<br \/>\nCopy YourFont.* to your ~\/.fonts directory.<br \/>\nReload the font server with \/etc\/init.d\/xfs reload. <\/p>\n<p>Your font should now show up in Gimp and can be installed to Open Office with oopadmin. <\/p>\n<p>I had some problems with my ITC Franklin Gothic fonts in that gimp kept on using the bold version for any instance of a Franklin Gothic font.  So ITC Franklin Gothic Demi Oblique would just be the bold version.  And Book would be bold too.  The solution here was to rename every instance of &#8220;ITC Franklin Gothic&#8221; in the pfa file with the name I wanted to show up in gimp.  I think the key was the &#8220;Family Name&#8221; which was identical for all of the pfa files.  Once I changed those, it worked.  Make sure to delete old .pfa~ files, they screw things up too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converting mac fonts to linux sucks. Read on.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/194"}],"collection":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":0,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}