-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Approach using system fonts within WebCord
This change removes most bundled fonts from NPM sources and re-approaches to rely on Electron's default fonts, with possibly better defaults for each of the platforms. This change is motivated with the fact that bundled fonts have significantly increased the disk usage of WebCord's `app.asar`.
- Loading branch information
1 parent
33c4c7e
commit bb24a74
Showing
6 changed files
with
19 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,9 @@ | ||
/** Roboto: regular, bold, italic, bold+italic **/ | ||
@import url('../../../../node_modules/@fontsource/roboto/700.css'); | ||
@import url('../../../../node_modules/@fontsource/roboto/700-italic.css'); | ||
@import url('../../../../node_modules/@fontsource/roboto/400.css'); | ||
@import url('../../../../node_modules/@fontsource/roboto/400-italic.css'); | ||
|
||
/** Ubuntu: regular, bold, italic, bold+italic **/ | ||
@import url('../../../../node_modules/@fontsource/ubuntu/700.css'); | ||
@import url('../../../../node_modules/@fontsource/ubuntu/700-italic.css'); | ||
@import url('../../../../node_modules/@fontsource/ubuntu/400.css'); | ||
@import url('../../../../node_modules/@fontsource/ubuntu/400-italic.css'); | ||
|
||
/** Fira Code: regular, bold, italic, bold+italic **/ | ||
@import url('../../../../node_modules/@fontsource/fira-code/700.css'); | ||
@import url('../../../../node_modules/@fontsource/fira-code/400.css'); | ||
|
||
/** Twemoji **/ | ||
@import url('../../../../node_modules/twemoji-colr-font/twemoji.css'); | ||
|
||
:root { | ||
--font-primary: 'Roboto',Twemoji, Arial, sans-serif; | ||
--font-display: 'Ubuntu',Twemoji, Arial, sans-serif; | ||
--font-code: 'Fira Code',Twemoji, Courier, monospace; | ||
--font-primary: sans-serif, Twemoji; | ||
--font-display: sans-serif, Twemoji; | ||
--font-code: monospace, Twemoji; | ||
--font-headline: var(--font-display); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters