Skip to content

Commit

Permalink
feat(fonts): add font (#272)
Browse files Browse the repository at this point in the history
* feat(fonts): add font

* refactor(font): remove font-face

* refactor(webpack-loader): remove svg
  • Loading branch information
KatvonRivia committed Mar 2, 2020
1 parent 8f9d1e5 commit 9721ddc
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
Binary file added src/fonts/NotesEsaBol.otf
Binary file not shown.
Binary file added src/fonts/NotesEsaBolIta.otf
Binary file not shown.
Binary file added src/fonts/NotesEsaReg.otf
Binary file not shown.
Binary file added src/fonts/NotesEsaRegIta.otf
Binary file not shown.
7 changes: 7 additions & 0 deletions src/scripts/components/layer-selector/layer-selector.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@require '../../../variables.styl'

@font-face
font-style: normal
font-family: NotesEsa
src: url('../../../fonts/NotesEsaReg.otf')

.layerSelector
position: absolute
top: 0
Expand Down Expand Up @@ -28,3 +33,5 @@
margin: 0
text-transform: uppercase
font-size: emCalc(18px)
font-family: NotesEsa
line-height: emCalc(18px)
10 changes: 10 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ module.exports = (env, {mode} = {}) => {
},
{loader: 'stylus-loader'}
]
},
{
test: /\.(woff(2)?|ttf|otf|eot)(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/'
}
}
}
]
},
Expand Down

0 comments on commit 9721ddc

Please sign in to comment.