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? http://www.k15t.com/display/HTML/Creating+a+Template

1 answer

1 accepted

0 votes
Answer 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:

http://www.k15t.com/display/PDF/Creating+a+Template

http://www.k15t.com/display/PDF/Uploading+Fonts

http://www.k15t.com/display/PDF/Using+the+Uploaded+Fonts

Cheers,
Jens

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
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page

                                                      &nbsp...

275 views 0 7
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