{"id":11971,"date":"2022-03-05T03:13:10","date_gmt":"2022-03-05T08:13:10","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11971"},"modified":"2022-03-05T03:13:13","modified_gmt":"2022-03-05T08:13:13","slug":"how-to-use-google-font-roboto-snippet","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-use-google-font-roboto-snippet\/","title":{"rendered":"How to use Google Font Roboto"},"content":{"rendered":"\n
Google Font Roboto CSS 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">\n \n\/\/css\n<style>\n body {\n font-family: 'Roboto', sans-serif;\n }\n<\/style><\/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,15],"tags":[954,170,249,277],"yoast_head":"\nHow to use Google Font Roboto Snippet<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n