3

The html+css for Firefox in windows, looks fine, but same looks out of place in Firefox in Ubuntu. Please do let me know, as to how it can corrected, what should i do?

More info 1: The css code for the text in the attached image:

style="font-family:'Museo 300'; 
font-size:11px; 
text-align:left; 
color:#636466; 
padding-top:3px;"

Although am changing Museo 300 to font to Arial, Helvetica, sans-serif, so it can load in any browser with these default fonts, but still i see the this problem.

image attached

Windows 7 - firefox Ubuntu - firefox

Bud Damyanov
  • 30,171
  • 6
  • 44
  • 52
Sharath-designer
  • 111
  • 3
  • 11

1 Answers1

0

Most likely the font you are using is not installed on the Ubuntu machine. To get around this you must supply the font yourself. Google Fonts is a great way to do just this.

You can search their site for a suitable font, and then link it in your site <head>.

<link href='http://fonts.googleapis.com/css?family=Roboto:300' rel='stylesheet' type='text/css'>

And then use it in your CSS

font-family: 'Roboto', sans-serif;

Sadly, Google Fonts does not have the Museo font you are trying to use. However, you can use the @font-face CSS At-Rule to link to a font file which you are hosting on your site. Make sure that you only host the languages and font weight/style that you plan to use, and that your font file is limited to those same parameters. This will allow the file to be loaded much faster.

@font-face {
    font-family: 'My Custom Font';
    src: url('http://yoursite.com/yourfontfile.ttf') format('truetype');
}
p.customfont { 
    font-family: 'My Custom Font', Verdana, Tahoma;
}

(See this answer for more information)

Community
  • 1
  • 1
Trevin Avery
  • 2,751
  • 2
  • 20
  • 31