Hi,
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:
@font-face { 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!
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.