How to customize monofont in Scroll PDF Exporter?

How do I specify a different font for <pre> and <code>? Do I need to create a custom template as discussed here?

1 answer

1 accepted

Hi Robert,

for Scroll PDF Exporter you don't need to create a template plugin. Instead use the integrated template designer.

Follow the guide for creating Scroll PDF Exporter templates, upload your custom font and the use it like this:

tt, pre {
  font-family: &lt;your-font-family-here&gt;;

See here for more information:


I have the following, and the font is installed, but it's still coming out Courier:

/* code, pre { font-family: DejaVuSansMono; } */

Thanks. The tag for monofont in the Confluence source is code, so it's confusing that you have to use tt in the CSS.

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
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

355 views 0 6
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