Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize monofont in Scroll PDF Exporter?

Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2013

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
Jens Rutschmann _K15t_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2013

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

Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2013

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

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

Robert Lauriston
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2013

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
TAGS
AUG Leaders

Atlassian Community Events