Wait for fonts to load before rendering web page

后端 未结 11 1361
终归单人心
终归单人心 2020-11-27 15:38

I\'m using @font-face to embed fonts in my website. First the text renders as the system default, and then (once the font file has loaded presumably) the correct font render

11条回答
  •  情话喂你
    2020-11-27 16:02

    Use https://github.com/typekit/webfontloader

    and check the events in the configuration https://github.com/typekit/webfontloader#configuration

    
    
    

提交回复
热议问题