I am using the Roboto
and Roboto Sans
webfonts of google. Reading the Google Developers Doc there is a way to only embed certain letters of a whole webfont, using ?text=customletters
.
I have generated these two embed links:
<!-- whole roboto font -->
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700' rel='stylesheet' type='text/css'>
<!-- only custom letters of roboto slab using text?= -->
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,700?text=I%20am%20an%20example' rel='stylesheet' type='text/css'>
1) This does not work for me in safari. Is there something wrong with my code?
2) Although, is there a way to combine these two lines, to avoid two requests to another server on each page load?
3) Last and least, does the @import
and link href
way of embedding make any difference in performance?