mirror of
https://github.com/danth/stylix
synced 2025-02-16 13:28:35 +00:00
grub: use fc-match format option rather than grep (#368)
This commit is contained in:
parent
b5f4ca49df
commit
4a4c82f03c
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ let
|
|||
} ''
|
||||
# Use fontconfig to select the correct .ttf or .otf file based on name
|
||||
font=$(
|
||||
${pkgs.fontconfig}/bin/fc-match -v "${font.name}" \
|
||||
| grep "file:" | cut -d '"' -f 2
|
||||
${lib.getExe' pkgs.fontconfig "fc-match"} \
|
||||
${lib.escapeShellArg font.name} \
|
||||
--format=%{file}
|
||||
)
|
||||
|
||||
# Convert to .pf2
|
||||
|
|
Loading…
Add table
Reference in a new issue