Title: Load Custom Font
Last modified: March 4, 2021

---

# Load Custom Font

 *  [Tuempelkoenig](https://wordpress.org/support/users/tuempelkoenig/)
 * (@tuempelkoenig)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/load-custom-font/)
 * Hi,
 * I load my local custom fonts via styles.css in my child theme using @font-face.
   They are getting inlined by your plugin. The
 * On the site, the default system font is now displayed until the custom font is
   loaded, so that the font switches after approximately 0.5s – that looks pretty
   weird.
 * How can I prevent this?
    Is there generally a way to exclude style.css (as it
   is not included through functions.php)?
 * Thanks
    -  This topic was modified 5 years, 5 months ago by [Tuempelkoenig](https://wordpress.org/support/users/tuempelkoenig/).
    -  This topic was modified 5 years, 5 months ago by [Tuempelkoenig](https://wordpress.org/support/users/tuempelkoenig/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Tuempelkoenig](https://wordpress.org/support/users/tuempelkoenig/)
 * (@tuempelkoenig)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/load-custom-font/#post-14168839)
 * Figured it out myself: Previously the text was just hidden until the font was
   loaded and then showed up. I read that you are using font-display: swap as google
   suggests and this creates the effect of all fonts changing on the site after 
   approximately 1-200ms. For my feeling this results in a pretty weird visual effect.
   
   Is there a hook to prevent using swap? Are there any negative effects of not 
   using it (except googles suggestion)?
 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/load-custom-font/#post-14195499)
 * Hi [@tuempelkoenig](https://wordpress.org/support/users/tuempelkoenig/),
 * Currently, there’s no setting to disable `font-display: swap`. But it’s a good
   idea to add this. I’m adding it to my list, but it’ll be a while ’til I get around
   to it.
 * –Albert

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Load Custom Font’ is closed to new replies.

 * ![](https://ps.w.org/phastpress/assets/icon-256x256.png?rev=1873505)
 * [PhastPress](https://wordpress.org/plugins/phastpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phastpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phastpress/)
 * [Active Topics](https://wordpress.org/support/plugin/phastpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phastpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phastpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/load-custom-font/#post-14195499)
 * Status: not resolved