{"id":12797,"date":"2022-10-28T03:13:55","date_gmt":"2022-10-28T07:13:55","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12797"},"modified":"2022-10-28T03:13:59","modified_gmt":"2022-10-28T07:13:59","slug":"how-to-use-google-font-roboto","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-use-google-font-roboto\/","title":{"rendered":"How to use Google Font Roboto"},"content":{"rendered":"\n
Do this to use Google Font Roboto CSS as a code snippet.<\/p>\n\n\n\n
@import url('https:\/\/fonts.googleapis.com\/css2?family=Roboto&display=swap');\nfont-family: 'Roboto', sans-serif;<\/code><\/pre>\n\n\n\nExample using HTML.<\/p>\n\n\n\n
\/\/html\n<link rel="preconnect" href="https:\/\/fonts.gstatic.com">\n<link href="https:\/\/fonts.googleapis.com\/css2?family=Roboto:wght@300&display=swap" rel="stylesheet"><\/code><\/pre>\n\n\n\nThe CSS<\/p>\n\n\n\n
\/\/css\nbody {\n font-family: 'Roboto', sans-serif;\n}<\/code><\/pre>\n\n\n\nExample using CSS font-face.<\/p>\n\n\n\n
@font-face {\n font-family: 'Roboto';\n src: url('Roboto-ThinItalic-webfont.eot');\n src: url('Roboto-ThinItalic-webfont.eot?#iefix') format('embedded-opentype'),\n url('Roboto-ThinItalic-webfont.woff') format('woff'),\n url('Roboto-ThinItalic-webfont.ttf') format('truetype'),\n url('Roboto-ThinItalic-webfont.svg#RobotoThinItalic') format('svg'); \n font-weight: 200;\n font-style: italic;\n}<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,23,27,15,16],"tags":[170,303,350,433,635,637,638],"yoast_head":"\nHow to use Google Font Roboto With Examplea<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n