Skip to content

Commit

Permalink
feat(profile): add fc-match & fc-pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Nov 21, 2024
1 parent ffd6ecb commit 8d4d17f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apparmor.d/groups/freedesktop/fc-list
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 12 additions & 0 deletions tests/bats/fc-list.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 8d4d17f

Please sign in to comment.