Browse Source
Merge pull request #91 from meriadec/master
Fix font loading in builded Windows version
master
Loëck Vézien
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/styles/helpers.js
|
|
@ -21,7 +21,7 @@ export const fontFace = ({ |
|
|
|
}) => ` |
|
|
|
@font-face { |
|
|
|
font-family: "${name}"; |
|
|
|
src: url("${__DEV__ ? '' : __static}/fonts/${file}.woff2") format("woff2"); |
|
|
|
src: url("${__DEV__ ? '' : __static.replace(/\\/g, '/')}/fonts/${file}.woff2") format("woff2"); |
|
|
|
font-style: ${style}; |
|
|
|
font-weight: ${weight}; |
|
|
|
} |
|
|
|