Include Google font in PDF Export stylesheet

Peter Nørregaard Rasmussen May 6, 2020

I am trying to use the Google font Montserrat, but I can't make it work.

I have imported the font in the style sheet and inserted as the first font on the Body:

Do anyone have a solution ?

@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

@page
{
size: 210mm 297mm;
margin: 3cm 0.5cm 2cm 0.5cm;

...

body
{
margin: 0;
padding: 0;
font-family: 'Montserrat', Helvetica, Arial, sans-serif;
font-size:11pt;
}

 

1 answer

1 accepted

0 votes
Answer accepted
Tom Rough
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.
May 11, 2020

Hi Peter,

Have you also tried uploading the font from a file? You can read more here. Atlassian mentions that the only font files supported are true type fonts and true type collections (as *.ttf and *.ttc format). This community thread also provides some info in relation to font changing for the native exporter.

Alternatively, should you wish for more control over the styling of your PDF content and want to overcome some of the limitations that Atlassian mentions here, you also upload custom fonts to Scroll PDF Exporter which we (K15t) develop. Just let us know if you have any questions regarding this app.

Cheers, Thomas (K15t)

Peter Nørregaard Rasmussen May 22, 2020

Thanks very much for helping :-)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events