Difference between revisions of "Fonts and Having it Your Way"

m
no edit summary
m
m
Line 71: Line 71:
</syntaxhighlight>
</syntaxhighlight>


The following code should be copied into the ''fonts.css'' file (this is an arbitrary name and can be anything as long as it is reflected in the above ''functions.php'' file too) (The font name and different types of font files to be included can be modified).  There are other examples of the CSS code / directives, but the following seemed to be the most complete, addressing everything from Internet Explorer 8 and up (which is quite a lot). <syntaxhighlight lang="text">
The following code should be copied into a *.css file (can be in the same directory or a different one than the font files, make sure to adjust the path in the ''functions.php'' file to reflect this), ''fonts.css'' for the below example (this is an arbitrary name and can be anything as long as it is reflected in the above ''functions.php'' file too) (The font name and different types of font files to be included can be modified).  There are other examples of the CSS code / directives, but the following seemed to be the most complete, addressing everything from Internet Explorer 8 and up (which is quite a lot). <syntaxhighlight lang="text">
@font-face{
@font-face{
   font-family: 'UnderwoodQuietTab';
   font-family: 'UnderwoodQuietTab';