Skip to content

Commit

Permalink
✨ feat: upgrade nerd fonts to v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonz94 committed Aug 29, 2022
1 parent 7a5a404 commit 24d54d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'jonz94/Sarasa-Gothic-Nerd-Fonts'
runs-on: ubuntu-latest
env:
NERD_FONTS_VERSION: v2.1.0
NERD_FONTS_VERSION: v2.2.1
steps:
- uses: actions/checkout@v3
- name: download font patcher
Expand Down
26 changes: 13 additions & 13 deletions download-source-glyphs.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#!/bin/bash

NERD_FONTS_VERSION=${NERD_FONTS_VERSION:-v2.1.0}
NERD_FONTS_VERSION=${NERD_FONTS_VERSION:-v2.2.1}
upstream_src_glyphs_url="https://github.com/ryanoasis/nerd-fonts/blob/${NERD_FONTS_VERSION}/src/glyphs"

glyphs=(
"FontAwesome.otf"
"codicons/codicon.ttf"
"font-awesome/FontAwesome.otf"
"powerline-symbols/PowerlineSymbols.otf"
"weather-icons/weathericons-regular-webfont.ttf"
"devicons.ttf"
"font-awesome-extension.ttf"
"font-logos.ttf"
"materialdesignicons-webfont.ttf"
"NerdFontsSymbols 1000 EM Nerd Font Complete Blank.sfd"
"NerdFontsSymbols 2048 EM Nerd Font Complete Blank.sfd"
"octicons.ttf"
"original-source.otf"
"Pomicons.otf"
"PowerlineExtraSymbols.otf"
"PowerlineSymbols.otf"
"Symbols Template 1000 em.ttf"
"Symbols Template 2048 em.ttf"
"Symbols-1000-em Nerd Font Complete.ttf"
"Symbols-2048-em Nerd Font Complete.ttf"
"Unicode_IEC_symbol_font.otf"
"devicons.ttf"
"font-awesome-extension.ttf"
"font-logos.ttf"
"materialdesignicons-webfont.ttf"
"octicons.ttf"
"original-source.otf"
"weathericons-regular-webfont.ttf"
)

mkdir -p src/glyphs
Expand All @@ -29,5 +29,5 @@ for glyph in "${glyphs[@]}"; do
# replace all `whitespace` characters with `%20`
percent_encoded_uri="${upstream_src_glyphs_url}/${glyph//\ /%20}?raw=true"

curl -fsSL ${percent_encoded_uri} --output "src/glyphs/${glyph}"
curl -fsSL ${percent_encoded_uri} --output "src/glyphs/${glyph}" --create-dirs
done

0 comments on commit 24d54d9

Please # to comment.