How can I use Google's Roboto font on a website?

前端 未结 13 895
旧巷少年郎
旧巷少年郎 2020-12-12 10:23

I want to use Google\'s Roboto font on my website and I am following this tutorial:

http://www.maketecheasier.com/use-google-roboto-font-everywhere/2012/03/15

<
13条回答
  •  感动是毒
    2020-12-12 10:55

    You don't really need to do any of this.

    • Go to Google's Web Fonts page
    • search for Roboto in the search box at the top right
    • Select the variants of the font you want to use
    • click 'Select This Font' at the top and choose the weights and character sets you need.

    The page will give you a element to include in your pages, and a list of sample font-family rules to use in your CSS.

    Using Google's fonts this way guarantees availability, and reduces bandwidth to your own server.

提交回复
热议问题