web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Local upload for googl...
Power Pages
Answered

Local upload for google fonts

(1) ShareShare
ReportReport
Posted on by 2,527 Super User 2026 Season 1

Hello everyone,

 

does anybody know if there's a way to upload or embed a font-family locally?

That problem occurs specific for the german market as the GDPR cannot be fulfilled when we just use a link to google fonts to use some fonts.

Unfortunately the link gives some information to google and does not comply with the GDPR.

Is there a way to host the fonts locally as it works for self hosted websites?

Categories:
I have the same question (0)
  • Verified answer
    Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Lucas001 ,

     

    I have not done it but I'm sure we can do it. Have you tried to upload your font file (e.g., .ttf, .woff, .woff2) in under Web Files? Then in Portal theme or CSS customization, define a @font-face rule to specify the font-family and the URL/relative path of the font files. Here's an example:

     

     

    @font-face {
     font-family: 'MyCustomFont';
     src: url('/webfiles/customfont.woff2') format('woff2'),
     url('/webfiles/customfont.woff') format('woff'),
     url('/webfiles/customfont.ttf') format('truetype');
     font-weight: normal;
     font-style: normal;
    }

     

     

    You can apply the custom font-family to specific elements or globally in your Power Portals theme or CSS customization. For example: 

     

     

    body {
     font-family: 'MyCustomFont', Arial, sans-serif;
    }

     

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    I have used embedded fonts before and as per Saudali's post, you upload the fonts as Web Files, then update the CSS to use the Web Files.

  • Verified answer
    Lucas001 Profile Picture
    2,527 Super User 2026 Season 1 on at

    Hi @saudali_25, @Fubar,

     

    thanks for your support.

    The solution from @saudali_25 works, but I had to change the url a bit.

    It seems that the /webfiles/ is not longer needed and supported when using the new power pages.

    But that way the font is locally embedded and further GDPR conform. Thanks a lot!

     

     

    @font-face {
     font-family: 'MyCustomFont';
     src: url('/customfont.ttf') format('truetype');
     font-weight: normal;
     font-style: normal;
    }

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 17 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 12

#2
CN-06091549-0 Profile Picture

CN-06091549-0 12

Last 30 days Overall leaderboard