Usage of @font-face

This forum is for all Flare issues related to styles, stylesheets and XML.

Usage of @font-face

Postby Matze on Wed Mar 18, 2020 11:41 pm

Hi all,
my CSS starts like this:

Code: Select all
@font-face
{
   font-family: Font 1', 'Font 2', 'Font 4';
   src: url(http://www.Our Server/Our Font.eot);
   font-weight: normal;
   font-style: normal;
}



Are "font-weight" and "font-style" the only font-face attributes? What is with others like paddings, text decorations, etc. is this forbidden?
Because I want to strike out these stuff in my other css styles.

If this does not work, I think, it is possible defining all gernal CSS attributes in an external linkes CSS like this?
https://stackoverflow.com/questions/104 ... s-possible
Matze
Propeller Head
 
Posts: 91
Joined: Mon Jun 20, 2016 10:35 pm

Re: Usage of @font-face

Postby Dave Lee on Thu Mar 19, 2020 1:46 am

Font-family should only have one font name.

There's plenty of good information online about @font-face:

https://css-tricks.com/snippets/css/using-font-face/

https://www.w3schools.com/cssref/css3_p ... e_rule.asp
Dave Lee
Master Propellus Maximus
 
Posts: 5872
Joined: Mon Mar 05, 2007 8:33 am
Location: UK


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: Google [Bot] and 14 guests