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

Notifications

Announcements

Community site session details

Community site session details

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

Local upload for google fonts

(1) ShareShare
ReportReport
Posted on by 2,429 Super User 2025 Season 2

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,338 Super User 2025 Season 2 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,429 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard