The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to specify font for Preformatted 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 Champions.
July 29, 2013

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Nils Bier _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 Champions.
August 4, 2013

Hi Robert,

we've had a bug in the Scroll PDF Exporter regarding the output of preformatted content: https://k15t.jira.com/browse/EXP-12
It will be implemented in Scroll PDF Exporter 3.0, which we will release at the beginning of next week.

Hope this information helps.

Cheers,
Nils

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 Champions.
August 20, 2013

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

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 Champions.
September 11, 2013

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

TAGS
AUG Leaders

Atlassian Community Events