Forums

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

Confluence Server PDF Export Doesnt seem to render fonts properly

Yagnesh Bhat
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.
August 24, 2021

I have a macro that renders an html table with some CSS. That CSS also has data regarding what  font to be used for every table entry the details of which are also loaded in the plugin's CSS resource. So a sample table data looks something like this:

 

 <td style="padding-left:8px !important;font-size:14.7px;white-space:pre;overflow:hidden;width:189.0px; min-width:189.0px; max-width:189.0px" exc-width="189.0" class="vMiddle bold verdana"><pre style="font-size:14.7px;white-space:pre;overflow:hidden;width:189.0px; min-width:189.0px; max-width:189.0px" class="vMiddle bold verdana">Pinyon Script</pre></td>
<td style="padding-left:8px !important;font-size:14.7px;white-space:pre;overflow:hidden;width:452.0px; min-width:452.0px; max-width:452.0px" exc-width="452.0" class="vMiddle underline pinyon_script bold italic"><pre style="font-size:14.7px;white-space:pre;overflow:hidden;width:452.0px; min-width:452.0px; max-width:452.0px" class="vMiddle underline pinyon_script bold italic">The quick brown fox jumps over the lazy dog</pre></td>

 The problem is when the above table data is rendered in the confluence PDF export it does not show the font correctly as mentioned in the style attribute. It basically shows one same font all over! The same html when provided to Scroll PDF exporter generates the fonts exactly as expected.

 

So the question is whether this behavior expected from native confluence export and is there any way to check from within confluence what html the native confluence export "actually used" for the above mentioned td tags.

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2021
Yagnesh Bhat
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.
August 25, 2021

@Brant Schroeder , thanks for the reply. Yes, I did see that documentation link, however the issue is in the rendered html I am providing a link tag like so:

<link href='https://fonts.googleapis.com/css?family=Alegreya|Amatic+SC|Arial+Black|Bree+Serif|Calibri|Cambria|Century|Comic+Sans+MS|Garamond|Georgia|Impact|Merriweather|Permanent+Marker|Pinyon+Script|Playfair+Display|Roboto|Roboto+Mono|Tahoma|Trebuchet|Ultra|Varela+Round|Verdana' rel='stylesheet'>

It looks like the the native PDF export doesnt respect this link and is unable to use the fonts provided. Can this link be somehow included in the Stylesheet form pertiaining to the native pdf export in  the link you provided? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events