Skip to content

DfontSplitter - convert dfont files to TTF

UPDATE: Windows users, you now have a version too. More details on the new project page.

Mac OS X does some weird things sometimes. One of these is that some fonts are packaged in a format with a .dfont extension. This format allows multiple files to be contained within one dfont file, but doesn’t really make an awful lot of sense to me (why not just use a standard bundle?).

But anyway, there’s a BSD-licensed program called Fondu, designed to split these dfont files so you can get at the goodies inside. That’s all very well and good, but it’s a command line program, so not everyone will be comfortable using it.

As a sort of messing about with AppleScript project, I’ve put together an AppleScript based application that wraps around Fondu and allows you to pick a dfont file, pick a destination folder and it will do the rest.

Here’s a video of it in action. It’s simple enough not to need one, but if you want to see how it works before downloading…

Download now (120 KB)

Enjoy.

UPDATE: Please note that DfontSplitter is only tested on Mac OS X Leopard, 10.5. It should work on both Tiger (10.4) and Leopard (10.5), but is known not to work on Panther. Unfortunately I do not have the resources to fix it for Panther, as I only have an Intel Mac.

14 Comments

  1. Cyriel van Doren wrote:

    It looked all very promising. Just what I wanted. But the result was just a message that louded (in Dutch ‘Het woordenboek van het programma of de uitbreiding kan niet worden geopend omdat het niet scriptgeschikt is.’ The Sherlock tranlation is more or less: The dictionary of the program or the extension cannot be opened
    because it’s not the script-suitable.

    Activated in Scriptmaker it a panel shows this:

    sh: line 1: /Applications/AppleScript/dFontSplitter.app/Contents/Resources/fondu: No such file or directory

    And on the same moment Scriptmaker selects the last rule:

    do shell script “cd \”" & posixDestFolder & “\”;\”" & posixFonduLocation & “\” \”" & posixDfontFile & “\”"

    Maybe do you know what went wrong?

    I hope this description will be a help.

    Thursday, April 10, 2008 at 4:46 pm | Permalink | Posted in Mozilla Firefox 2.0.0.13 on Mac OS X
  2. Peter wrote:

    This looks like an issue with the, admittedly rather hacky, detection of the current folder and therefore the location of the fondu script.

    A few questions:

    • Did you rename the dFontSplitter.app package to anything else? This is known to break the reference to the fondu command line program.
    • Right-click dFontSplitter, choose Show Package Contents. If you browse to Contents/Resources, can you find the fondu executable file?
    • What version of Mac OS X are you running?

    If those steps don’t throw something up, then please zip up your copy of the program in /Applications/AppleScript and email it to me and I’ll see if I can spot anything out of the ordinary.

    I have a feeling this could be due to me failing to make the Universal Binary properly (as you’re on PPC, and I only have an Intel Mac, that’s the only place I can test).

    Anyway, if you get back to me with these things, I’ll see where I can go from there to try and get it working for you.

    Thursday, April 10, 2008 at 4:56 pm | Permalink | Posted in Mozilla Firefox 2.0.0.13 on Mac OS X
  3. Cyriel van Doren wrote:

    When I open dfontsplitter.dmg it shows: The Applications alias, dFontSplitter (Info shows under name en extension dFontSplitter.app) and Readme. I put dFontSplitter in The Applications folder and changed nothing.

    Cliccking on fondu file activates Terminal with this: Last login: Mon Apr 21 15:56:14 on ttyp2
    /Applications/dFontSplitter.app/Contents/Resources/fondu; exit
    Welcome to Darwin!
    Computer-van-Cyriel-van-Doren:~ office1$ /Applications/dFontSplitter.app/Contents/Resources/fondu; exit
    dyld: /Applications/dFontSplitter.app/Contents/Resources/fondu Undefined symbols:
    /Applications/dFontSplitter.app/Contents/Resources/fondu undefined reference to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib
    Trace/BPT trap
    logout
    [Proces voltooid] (Means: proces accomplished)

    My OSX version is 10.3.9

    Here the system info:
    Computermodel: Power Mac G4 (AGP-video)
    Processortype: PowerPC G4 (2.9)
    Aantal processors: 1
    Processorsnelheid: 400 MHz
    L2-cache (per processor): 1 MB
    Geheugen: 704 MB
    Bussnelheid: 100 MHz
    Opstart-ROM-versie: 4.2.8f1
    Serienummer: CK0123WVHSE

    Thank you for your efforts.

    By email you’ll receive the programs I found in my AppleScript map.

    Monday, April 21, 2008 at 3:12 pm | Permalink | Posted in Mozilla Firefox 2.0.0.14 on Mac OS X
  4. Kris wrote:

    Thanks Peter! This is exactly what I needed. Easy.

    Thursday, May 22, 2008 at 10:48 pm | Permalink | Posted in Safari 525.18 on Mac OS X
  5. Peter wrote:

    @Cyriel van Doren

    I’ve identified that dFontSplitter is incompatible with Panther, and I’ve emailed you about it.

    Monday, June 2, 2008 at 12:44 pm | Permalink | Posted in Mozilla Firefox 3.0 on Mac OS X
  6. Patrick Berkeley wrote:

    Thanks for this. Just what I needed for sIFR.

    Friday, August 22, 2008 at 5:27 am | Permalink | Posted in Mozilla Firefox 3.0 on Mac OS X
  7. pamela wrote:

    I downloaded dfontsplitter, clicked the icon, was asked to select a file, which I did….then nothing happened….

    Wednesday, September 17, 2008 at 8:51 pm | Permalink | Posted in Safari 525.22 on Mac OS X
  8. Peter wrote:

    @pamela - Which stage did it ask you for a file? The first time (when it asks you for the source file) or the destination folder?

    If it’s the latter, DfontSplitter does its work automatically, and doesn’t provide notification that it has done.

    Check the destination folder you specified in the last step for the TTF files.

    If it’s not that, and nothing comes up at the first stage (asking you for the source file) let me know here or by email and I’ll try and work with you to track the issue down.

    Wednesday, September 17, 2008 at 9:05 pm | Permalink | Posted in Mozilla Firefox 3.0.1 on Mac OS X
  9. Ryan Hilton wrote:

    Awesome man! Thanks, It Helped a ton! Exactly what I needed!

    Thursday, September 25, 2008 at 7:58 pm | Permalink | Posted in Safari 525.20.1 on Mac OS X
  10. Thanks, thanks, thanks! :)

    Sunday, November 2, 2008 at 11:59 pm | Permalink | Posted in Mozilla Firefox 3.0.1 on Mac OS X
  11. Tim wrote:

    This is an anwser to 40mins of searching in google for just this. Thank you heaps. Great job! :D

    Tuesday, November 18, 2008 at 1:46 am | Permalink | Posted in Safari 525.20.1 on Mac OS X
  12. Mitch Cohen wrote:

    Kudos! Found via a quick Google, and worked as advertised without difficulty. The UI could be happier, but really, what’s to complain about? Thanks!

    Monday, December 1, 2008 at 11:24 pm | Permalink | Posted in Safari 525.27.1 on Mac OS X
  13. Ed wrote:

    Excellent! Works perfectly! THANK YOU : )

    Monday, December 8, 2008 at 8:13 am | Permalink | Posted in Safari 525.27.1 on Mac OS X
  14. Dani wrote:

    Thank you thank you thank you! I am grateful for generous and savvy people like you. Keep up the good work!

    Wednesday, January 7, 2009 at 2:30 am | Permalink | Posted in Mozilla Firefox 3.0.5 on Mac OS X

14 Trackbacks/Pingbacks

  1. KH » Using Fonts with sIFR2 on Saturday, July 26, 2008 at 6:27 am

    [...] Back to my predicament, I searched on Google for about two hours to find what resources were available in the field of SWF fonts for sIFR. Needless to say, I didn’t find what I was looking for. So I proceeded to come up with my own solution using two open source utilities that were available to me. They weren’t easy to find, so I’ve done the work for you: DfontSplitter by Peter Upfold [...]

  2. [...] Back to my predicament, I searched on Google for about two hours to find what resources were available in the field of SWF fonts for sIFR. Needless to say, I didn’t find what I was looking for. So I proceeded to come up with my own solution using two open source utilities that were available to me. They weren’t easy to find, so I’ve done the work for you: DfontSplitter by Peter Upfold [...]

  3. dfont-Schriften in nach Truetype konvertieren on Monday, November 3, 2008 at 11:15 pm

    [...] http://peter.upfold.org.uk/blog/2008/03/11/dfontsplitter-convert-dfont-files-to-ttf/ [...]

  4. PHP, GD, Fonts and headings | this is john on Thursday, November 6, 2008 at 9:24 pm

    [...] http://peter.upfold.org.uk/blog/2008/03/11/dfontsplitter-convert-dfont-files-to-ttf/ - dfont to TTF … [...]

Post a Comment

Your email address is not made public or shared. Required fields are marked with *.
*
*
*
Posting a comment signifies you accept the privacy policy.
Please note - usually your comment will appear straight away but sometimes it will be held for approval (this is due to the spam filter). If your comment is waiting to be approved, please don't post it again! It will appear eventually.