Skip to content

Commit

Permalink
modify readme; update version to prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgonzalez committed Nov 27, 2017
1 parent 4460e5e commit d64a8a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,16 @@ npm run lint
npm run test
```

### Recommended CSS
### Generated CSS (recommended)

_Stolen directly from the Typekit site 💂💰_

```css

@font-face {
font-family:"my-font";
font-style: italic;
font-weight: 400;
src: url("https://mysite.com/my-font-400.woff2") format("woff2),
url("https://mysite.com/my-font-400.woff") format("woff"),
url("https://mysite.com/my-font-400.ttf") format("truetype"), /* if TTF file available */
url("https://mysite.com/my-font-400.otf") format("opentype"); /* if OTF file available */
font-family:"My Font";
src:url("my-font.woff2") format("woff2"),url("my-font.woff") format("woff"),url("my-font.otf") format("opentype");
font-style:normal;font-weight:400;
}
```

Expand Down
2 changes: 1 addition & 1 deletion lib/__tests__/font.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ it('should have an extension', () => {
it('should have a human font name', () => {
expect(fc.fontNameHuman).not.toBeUndefined()
expect(fc.fontNameHuman).not.toEqual(null)
fc.cleanup()
fc.cleanup()
})
4 changes: 2 additions & 2 deletions lib/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ export class CSS extends Font {
font-family:"${fontNameHuman}";
src:url("${nameWithoutExt}.woff2") format("woff2"),url("${nameWithoutExt}.woff") format("woff"),url("${nameWithoutExt}.otf") format("opentype");
font-style:normal;font-weight:400;
}
}
`
fs.writeFileSync(this.outFile, cssOutput)
}

get ext() {
get ext () {
return 'css'
}

Expand Down
2 changes: 1 addition & 1 deletion lib/font.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Font {
}

export () {

const font = this.readFont()

const outBuffer = font.write({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fontplop",
"productName": "fontplop",
"version": "1.2.0",
"version": "1.3.0",
"description": "Drag'n'drop font converter.",
"main": "src/index.ts",
"scripts": {
Expand Down

0 comments on commit d64a8a5

Please sign in to comment.