<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Font on Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/tags/font/</link><description>Recent content in Font on Andrew's Memory Blog</description><generator>Hugo -- gohugo.io</generator><image><url>https://andrewmemory.acornwall.net/img/rss_image.png</url><title>Font on Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/</link></image><language>en</language><managingEditor>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</managingEditor><webMaster>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</webMaster><copyright>Copyright 2009--2025</copyright><lastBuildDate>Fri, 06 Aug 2010 23:13:11 -0700</lastBuildDate><atom:link href="https://andrewmemory.acornwall.net/tags/font/index.xml" rel="self" type="application/rss+xml"/><item><title>Reading fonts from a Mac CDROM and converting them to TrueType</title><link>https://andrewmemory.acornwall.net/blog/2010-08-06-reading-fonts-from-a-mac-cdrom-and-converting-them-to-truetype/</link><pubDate>Fri, 06 Aug 2010 23:13:11 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2010-08-06-reading-fonts-from-a-mac-cdrom-and-converting-them-to-truetype/</guid><description>&lt;p&gt;A few years back, I bought a bunch of Macintosh fonts on a CD-ROM. Recently, I decided I wanted to use them with Ubuntu. Since the Mac CD was HPFS only and very scratched, here&amp;rsquo;s what I ended up doing.&lt;/p&gt;
&lt;p&gt;First, I installed the Ubuntu utilities for Mac HPFS: &lt;code&gt;sudo aptitude install macutils hfs&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then I tried just mounting the file system: &lt;code&gt;sudo mount -thfs /dev/cdrom /mnt/cdrom/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;That probably would have worked, but my CD was so scratched that it kept dying. (Also, I don&amp;rsquo;t know if copying from a mounted HFS file system copies both forks of the Apple file.)&lt;/p&gt;
&lt;p&gt;Luckily, I was able to use the mounted file system to get a ls -lR listing of the files on the disk. That made it easier to use the excellent hfs utils:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo aptitude install hftutils&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then I could: &lt;code&gt;hmount /dev/cdrom hcd TRUETYPE hcopy -b MyFont.suit /tmp/MyFont.hqx&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I wrote a script to copy the files over. Once I had the files over, I could convert them manually using fontforge (from &lt;a href="http://fontforge.sourceforge.net/" target="_blank" rel="noreferrer"&gt;fontforge.sourceforge.net&lt;/a&gt;). Basically, you do: &lt;code&gt;sudo aptitude install fontforge fontforge MyFont.hqx&lt;/code&gt; and then File -&amp;gt; Generate Fonts -&amp;gt; Save (after making sure TTF is selected).&lt;/p&gt;
&lt;p&gt;It turns out fontforge is overkill - and also harder to script - than fondu.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo aptitude install fondu fondu *.hqx&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Here are some useful sources of information:&lt;/p&gt;
&lt;p&gt;A discussion of font utilities: &lt;a href="http://ubuntuforums.org/showthread.php?t=314837" target="_blank" rel="noreferrer"&gt;ubuntuforums.org/showthread.php?t=314837&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The easy way: using fondu: &lt;a href="http://ubuntu-tutorials.com/2006/12/13/convert-mac-based-fonts-for-use-on-ubuntu-ubuntu-6061-610/" target="_blank" rel="noreferrer"&gt;ubuntu-tutorials.com/2006/12/13/convert-mac-based-fonts-for-use-on-ubuntu-ubuntu-6061-610/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Converting from one outline font (e.g. PostScript) to another (e.g. TrueType): &lt;a href="http://fontforge.sourceforge.net/faq.html#outline-conversion" target="_blank" rel="noreferrer"&gt;fontforge.sourceforge.net/faq.html#outline-conversion&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have the fonts in TTF format, you can copy them to ~/.fonts/ (or use the File Browser to open the Font Viewer and then press the Install button if you&amp;rsquo;re GUI) to install on Ubuntu.&lt;/p&gt;
&lt;p&gt;For Windows, just drag &amp;amp; drop the font to C:\WINNT\Fonts or C:\WINDOWS\Fonts depending on your system.&lt;/p&gt;
&lt;p&gt;Incidentally, if you&amp;rsquo;re looking for a particular font or lookalike, you&amp;rsquo;ll probably find it here: &lt;a href="http://www.fonts101.com/" target="_blank" rel="noreferrer"&gt;www.fonts101.com&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>