Jump to content

Open Sans not working


xtech

Recommended Posts

Hi,

the default theme includes the Open Sans font (at least in the CSS). Nevertheless, it seems that in my community the font seems nothing like Open Sans. I would say it is more like arial or something. 

Is there a problem or something we should do to make it really working?

Link to comment
Share on other sites

I do have this (apart from customized colors...):

body {
  font-family: "Open Sans",Helvetica,Arial,sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #bdbdbd;
  height: 100%;
  background-color: #1b1c1e;
}
Link to comment
Share on other sites

@xtech, Before you can use the Open Sans via CSS, you need to include the actual font file. Open Sans is not a default browser font. With your current font-family specification, "Open Sans" is not available so the browser will then use either Helvetica, Arial, or a sans-serif font in that order.

Try including this line at the top of your custom.css file.

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700);

 

Link to comment
Share on other sites

@xtech, Before you can use the Open Sans via CSS, you need to include the actual font file. Open Sans is not a default browser font. With your current font-family specification, "Open Sans" is not available so the browser will then use either Helvetica, Arial, or a sans-serif font in that order.

Try including this line at the top of your custom.css file.

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700);

 

​Thank you! Can i use a local version of it? Storing it at the server?

Link to comment
Share on other sites

Yes, you can use a local version on your own server. :) Remember though, use https. 

Im just tested this, and that works - i declare the name of the font with the font-family part and then i can call it wherever : 

  @font-face {
    font-family: 'gwfont';
    src: url('https://hockeyforat.se/laravel/fonts/gwfont.ttf'); /*URL to font*/
}

how i use it somewhere :

.ipsPageHeader {
  font-family: 'gwfont';
}

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...