Add Roboto font via URL to export to PDF stylesheet

Ruud van de Ven September 6, 2022

Is it possible to add the Roboto font to the PDF export via an external url in Confluence Cloud. 

Ive got no server to upload any TTF file.

 

I want to embed this code:

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,500;0,700;0,900;1,100;1,500;1,700;1,900&display=swap');

 

And do this:

*{

font-family: 'Roboto', sans-serif;

}

 

but it doesnt seem to work.

 

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 6, 2022

Hi @Ruud van de Ven and welcome to the community!

Please read this thread https://community.atlassian.com/t5/Confluence-questions/Changing-font-family-in-PDF-export-OnDemand/qaq-p/433055 which has a solution for you!

Let me know if that works out for you!

Alex

Ruud van de Ven September 6, 2022

It doesnt. For this solution i need to download the fonts and add them to some confluence page and reference to those files?

 

I want to directly put the Google fonts.googleapis Url in there. 

Suggest an answer

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

Atlassian Community Events