Skip to content

Commit

Permalink
fonts: only add the files to the repo that are actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Dec 13, 2023
1 parent 043f653 commit 4c194ee
Show file tree
Hide file tree
Showing 817 changed files with 25 additions and 6,026 deletions.
21 changes: 21 additions & 0 deletions fonts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -e

rm -Rf ../overrides/fonts/*

# See ../web/stylesheets/fonts.css for which files are needed
mkdir -p ../overrides/fonts/chivo
cp -R node_modules/@fontsource/chivo/latin-{400,700,900}.css ../overrides/fonts/chivo
mkdir -p ../overrides/fonts/chivo/files
cp -R node_modules/@fontsource/chivo/files/chivo-latin-{400-normal,700-normal,900-normal}.woff2 ../overrides/fonts/chivo/files

mkdir -p ../overrides/fonts/roboto
cp -R node_modules/@fontsource/roboto/latin-{300,400,400-italic,700}.css ../overrides/fonts/roboto
mkdir -p ../overrides/fonts/roboto/files
cp -R node_modules/@fontsource/roboto/files/roboto-latin-{300-normal,400-normal,400-italic,700-normal}.woff2 ../overrides/fonts/roboto/files

mkdir -p ../overrides/fonts/roboto-mono
cp -R node_modules/@fontsource/roboto-mono/latin-400.css ../overrides/fonts/roboto-mono
mkdir -p ../overrides/fonts/roboto-mono/files
cp -R node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff2 ../overrides/fonts/roboto-mono/files
2 changes: 1 addition & 1 deletion fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "cp -R node_modules/@fontsource/* ../overrides/fonts"
"build": "./build.sh"
},
"author": "",
"license": "MIT",
Expand Down
27 changes: 0 additions & 27 deletions overrides/fonts/chivo/100-italic.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/100.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/200-italic.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/200.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/300-italic.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/300.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/400-italic.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/400.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/500-italic.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/500.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/600-italic.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/600.css

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/fonts/chivo/700-italic.css

This file was deleted.

Loading

0 comments on commit 4c194ee

Please sign in to comment.