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:
============
You can try grouping your .TTF font files into one .TTC collection file, by opening them all at once and using File > Generate TTC...
============
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
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
)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radek.
Just search "TTSDK.ZIP" in Google.
Found results:
..and so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At now, FontForge creates .ttc file very well.
Tested under Ubuntu 12.04 with source fonts from /usr/share/fonts/truetype/msttcorefonts/Verdana*.ttf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot @Mikhail Kurskiy , this fontforge software works well and I've succeeded in creating a .ttc file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ondine Kilker, hello!
Have you find a solution?
I have the same problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.