feat(profile): add fc-match & fc-pattern.

This commit is contained in:
Alexandre Pujol 2024-11-21 19:26:57 +00:00
parent ffd6ecba5b
commit 8d4d17fa34
Failed to generate hash of commit
2 changed files with 13 additions and 1 deletions

View file

@ -7,7 +7,7 @@ abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/fc-list
@{exec_path} = @{bin}/fc-list @{bin}/fc-match @{bin}/fc-pattern
profile fc-list @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>

View file

@ -8,3 +8,15 @@ load common
@test "fc-list: Return a list of installed fonts in your system" {
fc-list
}
@test "fc-match: Return a sorted list of best matching fonts" {
fc-match -s 'DejaVu Serif'
}
@test "fc-pattern: Display default information about a font" {
fc-pattern --default 'DejaVu Serif'
}
@test "fc-pattern: Display configuration information about a font" {
fc-pattern --config 'DejaVu Serif'
}