Skip to content

Commit

Permalink
fix: update font handling and installation protocol
Browse files Browse the repository at this point in the history
- restart font cache for specific windows version
- add font paths for different font types
- install fonts using a loop
  • Loading branch information
falcucci committed Sep 19, 2024
1 parent eaf0c7e commit 6b55472
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,27 @@ jobs:
scoop bucket add nerd-fonts
scoop install Monaspace-NF FiraCode-NF ProFont-NF Cascadia-Code CascadiaCode-NF CascadiaMono-NF CascadiaCode-NF-Mono CascadiaCode-NF-Propo Noto-NF
- name: Restart font cache
if: matrix.os == 'windows-2022'
shell: powershell
run: |
$fontPaths = @(
"$env:SCOOP\apps\nerd-fonts\current\Monaspace-NF\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\FiraCode-NF\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\ProFont-NF\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\Cascadia-Code\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\CascadiaCode-NF\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\CascadiaMono-NF\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\CascadiaCode-NF-Mono\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\CascadiaCode-NF-Propo\*.ttf",
"$env:SCOOP\apps\nerd-fonts\current\Noto-NF\*.ttf"
)
foreach ($path in $fontPaths) {
foreach ($font in Get-ChildItem -Path $path) {
Add-FontResource -FilePath $font.FullName
}
}
- name: Install Fonts
run: |
declare -a fonts=(
Expand Down

0 comments on commit 6b55472

Please sign in to comment.