Is it possible to download Open Sans as available on Google Fonts to use on my desktop?


Answers

I agree with FRD to some extent. And if you want to take print out of some text in the same font, then you'll have to Drag and Drop the respective .ttf files to the Fonts Explorer, which you can find in the Control Panel.

I installed by simply opening the file and clicking on the installation button. But when I printed out the text on a paper, it was some other font. So dragging and dropping worked well for prints as well.

Question

I want to use the font on Windows, but it seems that Google Fonts are for use on the web.




try this

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local('Open Sans Light'), local('OpenSans-Light'),
  src: local('Open Sans'), local('OpenSans'), url(OpenSans-Light.ttf) format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url(OpenSans-Light.ttf) format('truetype');

}

Download Google Font




So first of all, your code does not run as is: you have not shown us the full data frame data. Second, even if it did, it would not produce the plot you show, because the legend is not positioned properly.

Assuming your plot is called ggp, as in

ggp <- ggplot(data=data,...) + geom_point(...) + geom_text(...) etc.

and assuming the Open Sans font is installed on your (Windows...) system, then this will yield the result you want:

windowsFonts(OpenSans=windowsFont("Open Sans"))
ggp +
  theme(panel.background=element_blank(),
        panel.grid.major=element_blank(),
        panel.grid.minor=element_blank(),
        text=element_text(family="OpenSans"))



How to use Google Web Font in website form local path?

You can use goog-webfont-dl to download fonts locally. This will also generate css file for you to use in your project.





Tags