Skip to content

Commit

Permalink
Bundle fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
knomepasi committed Oct 7, 2024
1 parent 86a3e1d commit 13f0e1c
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
svg:
for file in asset_sources/*.svg; do scour $$file _includes/svg/`basename $$file` --strip-xml-prolog --enable-id-stripping --remove-metadata --enable-comment-stripping --enable-viewboxing --shorten-ids --shorten-ids-prefix=`basename $$file .svg`_; done
for file in asset_sources/icons/*.svg; do scour $$file _includes/svg/`basename $$file` --strip-xml-prolog --enable-id-stripping --remove-metadata --enable-comment-stripping --enable-viewboxing --shorten-ids --shorten-ids-prefix=`basename $$file .svg`_; done
local-test:
bundle exec jekyll serve
14 changes: 7 additions & 7 deletions asset_sources/click-to-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added assets/fonts/Montserrat_500.woff
Binary file not shown.
Binary file added assets/fonts/Montserrat_500.woff2
Binary file not shown.
Binary file added assets/fonts/Noto_Sans_400.woff
Binary file not shown.
Binary file added assets/fonts/Noto_Sans_400.woff2
Binary file not shown.
Binary file added assets/fonts/Noto_Sans_400i.woff
Binary file not shown.
Binary file added assets/fonts/Noto_Sans_400i.woff2
Binary file not shown.
23 changes: 23 additions & 0 deletions assets/fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
src: url('Montserrat_500.woff2') format('woff2'),
url('Montserrat_500.woff') format('woff');
}

@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 400;
src: url('Noto_Sans_400.woff2') format('woff2'),
url('Noto_Sans_400.woff') format('woff');
}

@font-face {
font-family: 'Noto Sans';
font-style: italic;
font-weight: 400;
src: url('Noto_Sans_400i.woff2') format('woff2'),
url('Noto_Sans_400i.woff') format('woff');
}
6 changes: 3 additions & 3 deletions assets/images/click-to-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 13f0e1c

Please sign in to comment.