Difference between revisions of "SUNScholar/Theme/Fonts"

From Libopedia
Jump to navigation Jump to search
Line 26: Line 26:
 
</pre>
 
</pre>
 
===References===
 
===References===
*http://design.ubuntu.com/assets/ubuntu-font-family
+
*http://font.ubuntu.com
 
*http://www.w3.org/TR/css3-fonts
 
*http://www.w3.org/TR/css3-fonts
 
*http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
 
*http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp

Revision as of 13:52, 19 August 2014

Back to Theme

Customisation

  1. Created a fonts folder in the Mirage 1 theme folder.
  2. Uploaded Ubuntu fonts to the font folder created above.
  3. Added the following to the Mirage 1 reset.css file.
@font-face {
    font-family: 'ubuntu-r';
    src: url('../../fonts/ubuntu-r-webfont.eot');
    src: url('../../fonts/ubuntu-r-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/ubuntu-r-webfont.woff') format('woff'),
         url('../../fonts/ubuntu-r-webfont.ttf') format('truetype'),
         url('../../fonts/ubuntu-r-webfont.svg#ubunturegular') format('svg');
}

@font-face {
    font-family: 'ubuntu-b';
    src: url('../../fonts/ubuntu-b-webfont.eot');
    src: url('../../fonts/ubuntu-b-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../fonts/ubuntu-b-webfont.woff') format('woff'),
         url('../../fonts/ubuntu-b-webfont.ttf') format('truetype'),
         url('../../fonts/ubuntu-b-webfont.svg#ubuntubold') format('svg');
}

References