OnDemand Confluence Export PDF Font


I need the ability to use a specific font in our PDF exports. I've had a look at this: https://confluence.atlassian.com/display/DOC/Advanced+PDF+Export+Customisations

And it shows that it should be possible to use font-face to allow the use of a different font:

  src: url(file:///usr/share/fonts/Consolas.ttf);  
  -fs-pdf-font-embed: embed;  
.code pre, .preformatted pre, tt, kbd, code, samp 
  font-family: Consolas, monospace;  
  font-size: 9pt;  

I've changed the url to point to a hosted server I can publicly access but unfortunately no luck so far. It seems to fall back to the standard font.

Is this functionality available in OnDemand?

Thanks for your help!

2 answers

1 accepted

3 votes
Answer accepted

That's currently not possible in OnDemand, we have a feature request to address it:

- https://jira.atlassian.com/browse/CONF-28348

Please vote for it and leave your feedback. In the meantime, you can log a ticket at support.atlassian.com and upload the font file, and a support engineer will upload it into your Confluence and you should be able to export to PDF normaly after that.

All the best.

NOOOOOO. You mean you can't use custom fonts for PDF generation in Confluence?

@Daniel Sadjadian, you can use custom fonts for PDF exports. It's just that you would need to convert them to a [TTC font format|https://confluence.atlassian.com/display/CONFKB/How+to+create+ttc+family+font+file] first, and then request Atlassian Support to perform the upload for you. :)

This is not the case anymore. Confluence cloud can now handle custom fonts for pdf Export. See this question / answer : https://community.atlassian.com/t5/Confluence-questions/Changing-font-family-in-PDF-export-OnDemand/qaq-p/433055

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

196 views 2 10
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