Working with TTF/TTC fonts on Mac

Discussion in 'Mac Apps and Mac App Store' started by Wowzera, Jun 23, 2009.

  1. Wowzera macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #1
    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.
     
  2. Wowzera thread starter macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #3
    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?
     
  3. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    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.
     
  4. Wowzera thread starter macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #5
    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 ;)
     
  5. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
    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.
     
  6. Wowzera thread starter macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #7
    Thank you, I will enter in contact with you! :)

    Thank you so much for being helpful! :)
     
  7. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #8
  8. Wowzera thread starter macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #9

    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?
     
  9. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #10
    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).
     
  10. Wowzera thread starter macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #11
    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?
     
  11. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #12
    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$ 
    
     
  12. Wowzera thread starter macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #13
    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 :)
     
  13. -Garry- macrumors 6502a

    -Garry-

    Joined:
    Oct 23, 2005
    Location:
    Manchester, UK
    #14
    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.
     
  14. hasmark macrumors newbie

    Joined:
    Aug 25, 2009
    #15
    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.
     

Share This Page