Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Helvetica font?

Tags:

How to set Helvetica font?

I add css:

body {     font-family: Helvetica, Sans-Serif;     color: #444444;     font-size: 9pt;     background-color: #FAFAFA; } 

but in Mozilla I see MS shell dlg font.

Why is this happens and how will repair it? enter image description here

Update:

I set Arial but in Mozilla I see MS shell dlg again.enter image description here

like image 644
Mediator Avatar asked Jul 12 '13 13:07

Mediator


People also ask

Why don't I have the Helvetica font on my computer?

The Helvetica font is sold by Monotype Imaging, which holds the license on the full Helvetica family of typefaces. Helvetica is not included as a default font on Windows computers. Many typefaces look like Helvetica that may already exist in your computer's font collection.

How do I use Helvetica font on my website?

Helvetica Neue is not a web-safe type, so to do this you would have to license the typeface from a foundry like https://myfonts.com. They usually will allow you to use the type for a monthly fee and give you a CSS @font-face to link it to an external site.


1 Answers

If you want all browsers to use Arial whenever Helvetica is not available, you can always specify Arial as a second choice font.

body {     font-family: 'Helvetica', 'Arial', sans-serif;     color: #444444;     font-size: 9pt;     background-color: #FAFAFA; } 

because font-family can use any number or arguments, and it will use the first one in the list that is available.

like image 176
Mr Lister Avatar answered Oct 25 '22 15:10

Mr Lister