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

This widget could not be displayed.

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 widget could not be displayed.

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
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

543 views 7 6
Join discussion

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