Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Prioritize woff over ttf, remove svg fonts.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Oct 30, 2014
1 parent 4ca3dae commit e38325f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 48 deletions.
18 changes: 2 additions & 16 deletions markup-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,11 @@
@font-face {
font-family: icomoon;
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.woff') format('woff');
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/*
Fix for issue with fonts in Windows 7/8 and Chrome:
http://www.fontspring.com/blog/smoother-rendering-in-chrome-update
Must also not serve SVG to BB OS6:
https://github.com/scottjehl/Device-Bugs/issues/43
*/
@media (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
@font-face {
font-family: icomoon;
src: url('fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
}

/***************************
* Fallback Bitmap
Expand Down
18 changes: 2 additions & 16 deletions markup-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,11 @@
@font-face {
font-family: icomoon;
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.woff') format('woff');
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/*
Fix for issue with fonts in Windows 7/8 and Chrome:
http://www.fontspring.com/blog/smoother-rendering-in-chrome-update
Must also not serve SVG to BB OS6:
https://github.com/scottjehl/Device-Bugs/issues/43
*/
@media (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
@font-face {
font-family: icomoon;
src: url('fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
}

/***************************
* A-Grade Icons
Expand Down
18 changes: 2 additions & 16 deletions markup.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,11 @@
@font-face {
font-family: icomoon;
src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf') format('truetype'),
url('fonts/icomoon.woff') format('woff');
url('fonts/icomoon.woff') format('woff'),
url('fonts/icomoon.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/*
Fix for issue with fonts in Windows 7/8 and Chrome:
http://www.fontspring.com/blog/smoother-rendering-in-chrome-update
Must also not serve SVG to BB OS6:
https://github.com/scottjehl/Device-Bugs/issues/43
*/
@media (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
@font-face {
font-family: icomoon;
src: url('fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
}

/***************************
* A-Grade Icons
Expand Down

0 comments on commit e38325f

Please sign in to comment.