Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
858
28
Brazil
Is there a way to convert a Dfont to TTF/TTC ? If so, how?!


*Snow Leopard uses TTF/TTC fonts now, instead of the old Dfonts.

I do have FontLab Studio, but I can't open the .ttc fonts. I'm using the Mac version, obvious.
 
Thank you for helping.

What about ttf to ttc? I used Transtype to decode my .dfont into two .ttf files, now I want to create one .ttc file, is there a way to do it?
I've never heard of the TTC format before, but a quick Google reveals that it's somewhat Microsoft-specific. I was able to locate a Windows tool, here, for putting TTF fonts into a TTC - though I wasn't able to find any Mac OS X tools for this purpose.
 
I've never heard of the TTC format before, but a quick Google reveals that it's somewhat Microsoft-specific. I was able to locate a Windows tool, here, for putting TTF fonts into a TTC - though I wasn't able to find any Mac OS X tools for this purpose.

Thank you very much for all your efforts and help.
This is where I am stuck, looking for a friend to handle this files to me using this tool.

Thank you so much :)

PS: If anyone else know a Mac tool, please let us know ;)
 
Hey, it just so happens that I have access to Windows XP (in a virtual machine). If it can run that tool... I'll be able to convert the fonts for you. Check my profile for contact info, or send me a private message. Always glad to help.
 
Hey, it just so happens that I have access to Windows XP (in a virtual machine). If it can run that tool... I'll be able to convert the fonts for you. Check my profile for contact info, or send me a private message. Always glad to help.

Thank you, I will enter in contact with you! :)

Thank you so much for being helpful! :)
 
Grr, that program did not want to run. It came with source code, but the source code does NOT compile on my Mac... oh well.

However, I did manage to find a Mac tool... it's written in Perl. The way you use it is like this (from the Terminal):

Code:
perl ttf2ttc.pl font1.ttf font2.ttf font3.ttf ...

Here's the link: http://www.worldwizard.net/font-tool/ttf2ttc.zip

EDIT: Here's where I found the tool originally: http://www.nabble.com/Feature-request:-tool-to-create-TTC-td10756665.html


Thank you sooooo much!! :D :D
I'll be trying it tomorrow and will let you know! Can't test right now, because I am going to sleep.

Thank you mate! :D


EDITED:
I'm running Snow Leopard, I got compiling problems on line 70:

Here's the output:

Code:
Number found where operator expected at ttf2ttc.pl line 70, near "pl"
Number found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ?)
Number found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ?)
Number found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ?)
Number found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ?)
Number found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ?)
Number found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ?)
Bareword found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before ustar?)
Bareword found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before sssa?)
Bareword found where operator expected at ttf2ttc.pl line 70, near ""
	(Missing operator before sssa?)
syntax error at ttf2ttc.pl line 70, near "pl"
syntax error at ttf2ttc.pl line 78, near "}"
Execution of ttf2ttc.pl aborted due to compilation errors.

The problem looks to be on the line 70:
Code:
ttf2ttc-20070525/merge2ttc.pl0000744000076500007650000001061310625500374014325 0ustar  sssasssa#!/usr/bin/env perl

Could you test on Leopard?
 
Found the cause of the problem. Apparently, I failed to notice that two Perl scripts were concatenated together into one file.

Uploaded the fixed version at the same web address as before. It now contains 2 scripts: ttf2ttc.pl (which is now only 68 lines, so it doesn't have the compilation error), and merge2ttc.pl (the other script, which was in the same file).
 
Found the cause of the problem. Apparently, I failed to notice that two Perl scripts were concatenated together into one file.

Uploaded the fixed version at the same web address as before. It now contains 2 scripts: ttf2ttc.pl (which is now only 68 lines, so it doesn't have the compilation error), and merge2ttc.pl (the other script, which was in the same file).

I may be doing something wrong, but:

Code:
Matheus-Bossles-MacBook:~ Matheus$ cd Downloads/Fonts
Matheus-Bossles-MacBook:Fonts Matheus$ perl ttf2ttc.pl LucidaGrande.TTF LucidaGrandeBold.TTF
Require prefix to write TTF tables
Matheus-Bossles-MacBook:Fonts Matheus$ perl merge2ttc.pl LucidaGrande.TTF LucidaGrandeBold.TTF
Require TTC output pathname at merge2ttc.pl line 14.

What may be causing this ? If I am not asking too much (after all your efforts and help) can you test it on your mac?
 
Success! :D

Code:
eric-ahnells-imac:TTF2TTC wrldwzrd89$ perl ttf2ttc.pl --output-prefix=Lucida --input-ttf=LucidaGrande.ttf --input-ttf=LucidaGrandeBold.ttf
*** this font file include 18 tables
*** table GDEF @ 0x0010cfc4
*** table LTSH @ 0x00003fb4
*** table OS/2 @ 0x000001a8
*** table VDMX @ 0x00004f24
*** table cmap @ 0x0001c78c
*** table cvt  @ 0x0001fd44
*** table fpgm @ 0x0001e5c0
*** table glyf @ 0x00020280
*** table hdmx @ 0x00005504
*** table head @ 0x0000012c
*** table hhea @ 0x00000164
*** table hmtx @ 0x00000208
*** table kern @ 0x000cc6e8
*** table loca @ 0x000c8938
*** table maxp @ 0x00000188
*** table name @ 0x000fe7cc
*** table post @ 0x00100478
*** table prep @ 0x0001f468
*** seeking table GDEF @ 0x0010cfc4
dump sfnt table "GDEF" to file "Lucida.GDEF.sdat"
*** seeking table LTSH @ 0x00003fb4
dump sfnt table "LTSH" to file "Lucida.LTSH.sdat"
*** seeking table OS/2 @ 0x000001a8
dump sfnt table "OS/2" to file "Lucida.OS_2.sdat"
*** seeking table VDMX @ 0x00004f24
dump sfnt table "VDMX" to file "Lucida.VDMX.sdat"
*** seeking table cmap @ 0x0001c78c
dump sfnt table "cmap" to file "Lucida.cmap.sdat"
*** seeking table cvt  @ 0x0001fd44
dump sfnt table "cvt " to file "Lucida.cvt .sdat"
*** seeking table fpgm @ 0x0001e5c0
dump sfnt table "fpgm" to file "Lucida.fpgm.sdat"
*** seeking table glyf @ 0x00020280
dump sfnt table "glyf" to file "Lucida.glyf.sdat"
*** seeking table hdmx @ 0x00005504
dump sfnt table "hdmx" to file "Lucida.hdmx.sdat"
*** seeking table head @ 0x0000012c
dump sfnt table "head" to file "Lucida.head.sdat"
*** seeking table hhea @ 0x00000164
dump sfnt table "hhea" to file "Lucida.hhea.sdat"
*** seeking table hmtx @ 0x00000208
dump sfnt table "hmtx" to file "Lucida.hmtx.sdat"
*** seeking table kern @ 0x000cc6e8
dump sfnt table "kern" to file "Lucida.kern.sdat"
*** seeking table loca @ 0x000c8938
dump sfnt table "loca" to file "Lucida.loca.sdat"
*** seeking table maxp @ 0x00000188
dump sfnt table "maxp" to file "Lucida.maxp.sdat"
*** seeking table name @ 0x000fe7cc
dump sfnt table "name" to file "Lucida.name.sdat"
*** seeking table post @ 0x00100478
dump sfnt table "post" to file "Lucida.post.sdat"
*** seeking table prep @ 0x0001f468
dump sfnt table "prep" to file "Lucida.prep.sdat"
eric-ahnells-imac:TTF2TTC wrldwzrd89$ perl merge2ttc.pl --output-ttc=LucidaGrande.ttc
eric-ahnells-imac:TTF2TTC wrldwzrd89$
 
It looks to be working, I got a LucidaGrande.ttc font but with 4KB in size, instead of the 1.1MB that is the original Snow Leopard LucidaGrande font :(

Anyway, the font looks to be working. We're done :D

Thank you so much for all your efforts on helping me. Nowadays we can't find someone so kind as you.

Thank you very much wrldwzrd89 :)
 
Slightly OT, but it's so nice and refreshing to see selfless acts of assistance in an internet forum instead of the usual prevalent bickering. The net needs more people like you.
 
I also got a 4k LucidaGrande.ttc file but did not work

How did you achieve a proper ttc system file? I followed instructions, but the 4k file does not look like a valid font file You cannot preview it, or open it in fontbook, and when replacing the Snow Leopard version,, the bootup process detects an invalid system font and restores original.

Looks like the perl merge script is not merging the 2 ttf files properly.

Would appreciate some help here...please.

Can't stand Apple's system font. Was easy to port in Leopard. Not so easy in Snow Leopard it seems.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.