Skip to content

Commit d64a8a5

Browse files
modify readme; update version to prepare for release
1 parent 4460e5e commit d64a8a5

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,16 @@ npm run lint
2828
npm run test
2929
```
3030

31-
### Recommended CSS
31+
### Generated CSS (recommended)
3232

3333
_Stolen directly from the Typekit site 💂💰_
3434

3535
```css
36+
3637
@font-face {
37-
font-family:"my-font";
38-
font-style: italic;
39-
font-weight: 400;
40-
src: url("https://mysite.com/my-font-400.woff2") format("woff2),
41-
url("https://mysite.com/my-font-400.woff") format("woff"),
42-
url("https://mysite.com/my-font-400.ttf") format("truetype"), /* if TTF file available */
43-
url("https://mysite.com/my-font-400.otf") format("opentype"); /* if OTF file available */
38+
font-family:"My Font";
39+
src:url("my-font.woff2") format("woff2"),url("my-font.woff") format("woff"),url("my-font.otf") format("opentype");
40+
font-style:normal;font-weight:400;
4441
}
4542
```
4643

lib/__tests__/font.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ it('should have an extension', () => {
2424
it('should have a human font name', () => {
2525
expect(fc.fontNameHuman).not.toBeUndefined()
2626
expect(fc.fontNameHuman).not.toEqual(null)
27-
fc.cleanup()
27+
fc.cleanup()
2828
})

lib/css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export class CSS extends Font {
1414
font-family:"${fontNameHuman}";
1515
src:url("${nameWithoutExt}.woff2") format("woff2"),url("${nameWithoutExt}.woff") format("woff"),url("${nameWithoutExt}.otf") format("opentype");
1616
font-style:normal;font-weight:400;
17-
}
17+
}
1818
`
1919
fs.writeFileSync(this.outFile, cssOutput)
2020
}
2121

22-
get ext() {
22+
get ext () {
2323
return 'css'
2424
}
2525

lib/font.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class Font {
3030
}
3131

3232
export () {
33-
33+
3434
const font = this.readFont()
3535

3636
const outBuffer = font.write({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fontplop",
33
"productName": "fontplop",
4-
"version": "1.2.0",
4+
"version": "1.3.0",
55
"description": "Drag'n'drop font converter.",
66
"main": "src/index.ts",
77
"scripts": {

0 commit comments

Comments
 (0)