开发者

How to change default font before font-face loads?

开发者 https://www.devze.com 2023-02-14 07:28 出处:网络
In Firefox when a page loads it shows a default font (such as Times New Roman) for a moment (depending on connection speed) before it renders using the specified font-face. I understand this cannot be

In Firefox when a page loads it shows a default font (such as Times New Roman) for a moment (depending on connection speed) before it renders using the specified font-face. I understand this cannot be faster but how can I set, for example, Arial as the default font before it changes when the font-face lo开发者_运维问答ads?


Specifying an extra font in your font-family property will solve your problem.

font-family: "YourFontFaceFont", arial;

This will cause arial to be used until "YourFontFaceFont" is available.

0

精彩评论

暂无评论...
验证码 换一张
取 消