font weight fontforge code example

Example 1: change the weight of a bold font css

p {  
  font-weight: normal;
} 
a {  
  font-weight: bold;
}  
p.thick {  
  font-weight: 780;
}

Example 2: Font weight css

/*

Thin, Hairline				100
Extra Light, Ultra Light	200
Light						300
Normal, Regular				400
Medium						500
Semi Bold, 					600
Bold						700
Extra Bold, Ultra Bold		800
Black, Heavy				900

*/

.myclass {
 font-weight: normal; /* 400 */
}

.myOtherClass {
 font-weight: 700;  /* Bold */
}

/* You can Use this List to see all the different Types */
/* Make sure you have the Font Files Downloaded and Embedded */

Tags:

Css Example