From 8d4d17fa340e6ee5a541eec95acfcf76a01af4c2 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 21 Nov 2024 19:26:57 +0000 Subject: [PATCH] feat(profile): add fc-match & fc-pattern. --- apparmor.d/groups/freedesktop/fc-list | 2 +- tests/bats/fc-list.bats | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apparmor.d/groups/freedesktop/fc-list b/apparmor.d/groups/freedesktop/fc-list index ffe996c5..6254b245 100644 --- a/apparmor.d/groups/freedesktop/fc-list +++ b/apparmor.d/groups/freedesktop/fc-list @@ -7,7 +7,7 @@ abi , include -@{exec_path} = @{bin}/fc-list +@{exec_path} = @{bin}/fc-list @{bin}/fc-match @{bin}/fc-pattern profile fc-list @{exec_path} { include include diff --git a/tests/bats/fc-list.bats b/tests/bats/fc-list.bats index 52ed4388..12b1df2c 100644 --- a/tests/bats/fc-list.bats +++ b/tests/bats/fc-list.bats @@ -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' +}