How to specify font for Preformatted in Scroll PDF Exporter?

Preformatted (<pre>) text appears in the body font in the PDF. How do I specify an appropriate monospace font? I uploaded SourceCodePro and added the following to the content formatting CSS, but it had no effect:

div.programlisting div pre {
font-family: SourceCodePro;

I find no other reference to pre in the default CSS. The following had no effect, either:

code, pre { font-family: SourceCodePro; }

Also, there appears to be a bug in the <pre> output, the first line appears at the end of the previous paragraph.

1 answer

1 accepted

Hi Robert,

we've had a bug in the Scroll PDF Exporter regarding the output of preformatted content:
It will be implemented in Scroll PDF Exporter 3.0, which we will release at the beginning of next week.

Hope this information helps.


I'll test 3.0 when it's available, thanks.

Installed 3.0. <pre> is now Courier in the PDF, so that's fixed.

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

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
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,921 views 27 12
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