Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

State of the art / best practice for using custom fonts on webpages?

the last time i was building a website was back in 2007 and using custom fonts was a pretty ugly thing. Back then the most people went with some flash applets or PHP scripts that generated images.

Well, its 2012 now and i am sure people are using other techniques now. I found a lot of different stuff online, from "Google web fonts" to "CSS3 font-face" - but i am not sure what best method is.

So tell me, what is the best way to go when using custom fonts?

like image 251
John Smith Avatar asked Oct 07 '12 04:10

John Smith


People also ask

How do web fonts Impact performance?

There are a variety of ways in which web fonts impact performance: Delayed text rendering: If a web font has not loaded, browsers typically delay text rendering. In many situations, this delays First Contentful Paint (FCP). In some situations, this delays Largest Contentful Paint (LCP).

What are the best practices for font loading?

Thus, best practices for font loading generally focus on making sure that fonts get loaded as early as possible. Particular care should be given to fonts loaded from third-party sites as downloading these font files requires separate connection setups.

What is a system font?

A system font is the default font used by the user interface of a user's device. System fonts typically vary by operating system and version. Because the font is already installed, the font does not need to be downloaded. System fonts can work particularly well for body text.

How do I use system fonts in CSS?

A system font is the default font used by the user interface of a user's device. System fonts typically vary by operating system and version. Because the font is already installed, the font does not need to be downloaded. System fonts can work particularly well for body text. To use the system font in your CSS, list system-ui as the font-family:


1 Answers

"...the quality and variety of the typefaces that you’ll find on premium services like Typekit are understandably much better than what you can get for free, but if they’re just not in the budget then Google Web Fonts is absolutely your best bet ... Google Web Fonts is a completely free and super easy way to implement non-standard fonts on your website in a properly licensed and widely supported fashion."

-- from "A Beginner’s Guide to Using Google Web Fonts" written by Joshua Johnson, published 8/1/2012.

like image 153
Sean M Avatar answered Oct 22 '22 10:10

Sean M