Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

Embed Custom Fonts (as files)

(0) ShareShare
ReportReport
Posted on by

Hi!

I want to embed custom fonts which I got as files:

newmay_0-1633344264532.png

I did create webfiles with these files as attached notes:

newmay_2-1633344335977.pngnewmay_3-1633344354490.png

Then I went to the portal editor and opened the mybootstrap.min.css, in which I inserted the css @font-face with references to the webfiles.

newmay_4-1633344448351.png

 

Unfortunately, when I clear the cache the font on the default home page of the custom portal did not change. Do I have to take further steps or delete default fonts in order to get them displayed?

  • Community Power Platform Member Profile Picture
    on at
    Re: Embed Custom Fonts (as files)

    Hi @Fubar 

     

    I did it and I can download the webfiles via <portal url>/<webfile>. 

     

    I pasted this code into css: 

    newmay_0-1633612642278.png

     

    That is one of the files: 

    newmay_1-1633612734646.pngnewmay_2-1633612803966.png

     

    the items still show the portal default e.g. 

    .navbar-static-top.navbar .menu-bar > .navbar-nav > li > a {
    font-family: "Segoe UI Semibold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.25em;
    font-weight: bold;
    }

     

    and if I refernce it in whitin font-family nothing happens

  • Fubar Profile Picture
    8,010 Super User 2025 Season 1 on at
    Re: Embed Custom Fonts (as files)

    Also, make sure that you have cleared the Portal Cache after updating the file e.g <portal url>/_services/about (when logged in as Portal User with Administrators Web Role assigned).

    And check that your file has pushed through from DataVerse to the Portal - <portal url>/<your css file name> 

  • H V Profile Picture
    1,510 on at
    Re: Embed Custom Fonts (as files)

    Hi @Anonymous 

     

    font-family should be in single quote and just add the name of font:

    @font-face {
     font-family: 'Whitneybold' !important;
     src: url("/Whitneybold.otf") !important;
    }

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Embed Custom Fonts (as files)

    Hi @Fubar!

    newmay_0-1633417031582.png

    This should work right? Somehow I see no changes. 

     

    When I look into default css and search for font-families there are plenty of default, do I have to add the font again manually to specific selectors as here in the img?

    newmay_1-1633417243900.png

     

  • Fubar Profile Picture
    8,010 Super User 2025 Season 1 on at
    Re: Embed Custom Fonts (as files)

    as suggested by hardikv as the Parent page is set to Home it would just be '/', but also if standard bootstrap etc is defining the CSS items also then you may also need to include the "!important" directive for each CSS element so your CSS isn't overwritten.

  • H V Profile Picture
    1,510 on at
    Re: Embed Custom Fonts (as files)

    Hi @Anonymous 

     

    Please use something like this:

    url('/Whitneybold.otf');

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

  • Community Power Platform Member Profile Picture
    on at
    Re: Embed Custom Fonts (as files)

    Hi! I did change it, yet I still dont recognize any changes.

    newmay_0-1633349185449.png

    newmay_1-1633349260290.png

     

  • H V Profile Picture
    1,510 on at
    Re: Embed Custom Fonts (as files)

    Hi @Anonymous 

     

    Please remove ".." from url:

    hardikv_0-1633345046295.png

     

    Clear the cache and check please.

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35