Skip to content

Commit

Permalink
fix(CDN): added a versioned CDN file for project usage (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
lallmon authored Mar 15, 2017
1 parent 61bca0e commit 4740144
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
27 changes: 9 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@
**In Development:**

Add:

`<link rel="stylesheet" href="https://rawgit.com/fenderdigital/fender-web-fonts/master/fonts/fonts.css">`

to the `head` of your project
`<link rel="stylesheet" href="https://rawgit.com/fenderdigital/fender-web-fonts/master/fonts/fonts.css">` to the `head` of your project

**In Production:**

TBD
Add: `<link rel="stylesheet" href="https://cdn.rawgit.com/fenderdigital/fender-web-fonts/`TAGVERSION`/fonts/fonts.css">` to the `head` of your project

## Usage

`.source-sans-b`

```
@font-face {
font-family: 'SourceSansPro-Regular';
src: url(<relative_path>/SourceSansPro-Regular.otf);
src: url(<relative_path>/SourceSansPro-Regular.otf) format("opentype");
}
```

Expand All @@ -28,7 +27,7 @@ TBD
```
@font-face {
font-family: 'SourceSansPro-Bold';
src: url(<relative_path>/SourceSansPro-Bold.otf);
src: url(<relative_path>/SourceSansPro-Bold.otf) format("opentype");
}
```

Expand All @@ -37,7 +36,7 @@ TBD
```
@font-face {
font-family: 'SourceSansPro-It';
src: url(<relative_path>/SourceSansPro-It.otf);
src: url(<relative_path>/SourceSansPro-It.otf) format("opentype");
}
```

Expand All @@ -46,11 +45,7 @@ TBD
```
@font-face {
font-family: 'FuturaPT-Book';
src: url(<relative_path>/ParaType-FuturaPTBook.eot);
src: url(<relative_path>/ParaType-FuturaPTBook.eot?#iefix) format('embedded-opentype'),
url(<relative_path>/ParaType-FuturaPTBook.woff2) format('woff2'),
url(<relative_path>/ParaType-FuturaPTBook.woff) format('woff'),
url(<relative_path>/ParaType-FuturaPTBook.ttf) format('truetype');
src: url(<relative_path>/ParaType-FuturaPTBook.otf) format("opentype");
}
```

Expand All @@ -59,10 +54,6 @@ TBD
```
@font-face {
font-family: 'FuturaPT-Heavy';
src: url(<relative_path>/ParaType-FuturaPTHeavy.eot);
src: url(<relative_path>/ParaType-FuturaPTHeavy.eot?#iefix) format('embedded-opentype'),
url(<relative_path>/ParaType-FuturaPTHeavy.woff2) format('woff2'),
url(<relative_path>/ParaType-FuturaPTHeavy.woff) format('woff'),
url(<relative_path>/ParaType-FuturaPTHeavy.ttf) format('truetype');
src: url(<relative_path>/ParaType-FuturaPTHeavy.otf) format("opentype");
}
```
10 changes: 5 additions & 5 deletions fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
@font-face {
font-family: 'SourceSansPro-Regular';
src: url(./SourceSansPro-Regular.otf);
src: url(./SourceSansPro-Regular.otf) format("opentype");
}

@font-face {
font-family: 'SourceSansPro-Bold';
src: url(./SourceSansPro-Bold.otf);
src: url(./SourceSansPro-Bold.otf) format("opentype");
}

@font-face {
font-family: 'SourceSansPro-It';
src: url(./SourceSansPro-It.otf);
src: url(./SourceSansPro-It.otf) format("opentype");
}

@font-face {
font-family: 'FuturaPT-Book';
src: url(./ParaType-FuturaPTBook.otf);
src: url(./ParaType-FuturaPTBook.otf) format("opentype");
}

@font-face {
font-family: 'FuturaPT-Heavy';
src: url(./ParaType-FuturaPTHeavy.otf);
src: url(./ParaType-FuturaPTHeavy.otf) format("opentype");
}

.source-sans {
Expand Down

0 comments on commit 4740144

Please sign in to comment.