How to create a .ttc font collection from individual .ttf files for PDF Export?

We're trying to export our PDFs in Confluence using the following font-family: Gotham Rounded, but despite our CSS calls, Confluence defaults export to Helvetica/Arial. I have spoken to Atlassian team "support" and "bug" members and they tried this: https://confluence.atlassian.com/display/DOC/Customising+Exports+to+PDF but it was not successful. As a follow-up solution, they suggested the following:

Take the 8 font weights listed below as .ttf files and roll them into a .ttc collection. Once this .ttc collection is created, put this .ttc file into General Configuration under Confluence Administration. then choose PDF Export Language Support

The reason why we need a .ttc file instead of a .ttf file is that if we choose only one of the .ttf  fonts below it negates the Bold, Italic, BoldItalic, etc. upon Printout. (It works in the Wiki and Edit views however).

GothamRnd-BoldItal.ttf 

GothamRnd-Book.ttf      

GothamRnd-MedItal.ttf

GothamRnd-Bold.ttf     

GothamRnd-LightItal.ttf 

GothamRnd-Medium.ttf

GothamRnd-BookItal.ttf 

GothamRnd-Light.ttf

The issue now is that I am unable to locate a free tool to do this: Convert .ttf files into a .ttc collection.  I know that Scroll's PDF Exporter solves this export issue in general, but I would like to see if this is possible in standard Confluence before purchasing a third party plug-in. 

Thus far I have tried FontForge, TransType4 and RoboFont, but no luck. As stated here:

http://graphicdesign.stackexchange.com/questions/10535/how-to-package-all-faces-of-a-font-into-one-family-file-mac

============

You can try grouping your .TTF font files into one .TTC collection file, by opening them all at once and using File > Generate TTC... 

============

Except there is no option in the current software (FontForge) that shows the stated solution menu above: Generate TTC.

I believe this tool would work but it again is an additional purchase: http://www.fontlab.com/font-utility/dtl-otmaster/

Any help would be greatly appreciated. 

6 answers

2 votes

This article was created this year, but future users may find this helpful:

https://confluence.atlassian.com/display/CONFKB/How+to+create+ttc+family+font+file

Shannon Mackie

Atlassian support

At now, FontForge creates .ttc file very well.

Tested under Ubuntu 12.04 with source fonts from /usr/share/fonts/truetype/msttcorefonts/Verdana*.ttf

 

Another way to create fonts collection: MAKETTC.EXE utility from Microsoft TrueType SDK.

Can be downloaded here: http://ftp.asia.edu.tw/Mirrors/Chinese/font/ms/english/truetype/ttsdk.zip

Works better than buggy FontForge.

Hi Ilya,

as I'm having a problem with converting multiple TTF files into a TTC for a single font family (others are OK), I'd like to check the MAKETTC tool from MS TT SDK.

Unfortunately, your link is no longer valid and I couldn't find MAKETTC/MSTT SDK anywhere else.

Could you please post this tool on a different place? I'd like to give it a try.

Thanks!

Ilya, thanks for the links.

Unfortunately, the MAKETTC tool is an old 16-bit application unable to run on 64-bit Win systems. And currently I do not have any 32-bit system available around nor have a chance to prepare any virtual machine. I might try it later.

Thanks anyway.

> Unfortunately, the MAKETTC tool is an old 16-bit application unable to run on 64-bit Win systems.

MAKETTC.EXE works very well under DOSBox

@Ondine Kilker, hello!

Have you find a solution?
I have the same problem. 

I found solution: http://fontforge.github.io/en-US/

It works on Windows 7, normaly.
To create a TTC you need open all fonts you want, and than in one opened window Generate TTC, and uncheck Mege font tables. 

Thanks a lot @Mikhail Kurskiy , this fontforge software works well and I've succeeded in creating a .ttc file

It seems that this approach should have worked as an extension of the sparse instructions on Advanced PDF Export Customisations. (The Medium and Light weights could be set with font-weight:500 and font-weight:300 respectively - if they're needed - and picked up when those other css classes are specified with those weights or with bolder/lighter applied to the normal weight.)

 

@font-face 
{ 
    font-family: GothamRnd;
    src: url(file:///usr/share/fonts/gotham-rounded/GothamRnd-Book.ttf); 
    font-weight: normal;
    font-style: normal;
    -fs-pdf-font-embed: embed;
 }
@font-face 
{ 
    font-family: GothamRnd;
    src: url(file:///usr/share/fonts/gotham-rounded/GothamRnd-Bold.ttf); 
    font-weight: bold;
    font-style: normal;
    -fs-pdf-font-embed: embed;
 }
@font-face 
{ 
    font-family: GothamRnd;
    src: url(file:///usr/share/fonts/gotham-rounded/GothamRnd-BookItal.ttf); 
    font-weight: normal;
    font-style: italic;
    -fs-pdf-font-embed: embed;
 }
@font-face 
{ 
    font-family: GothamRnd;
    src: url(file:///usr/share/fonts/gotham-rounded/GothamRnd-BoldItal.ttf); 
    font-weight: bold;
    font-style: italic;
    -fs-pdf-font-embed: embed;
 }

 

...and then add font-family: GothamRnd; to the styling for the desired classes (a fairly global set in the default stylesheet is: body,p,li,td,table,tr,.bodytext,.stepfield)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Goff-Dupont
Published 4 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

54 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you