From cf12c611d51516ce8b03d85dbeae3c7ab88b41a8 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Mar 24 2023 13:15:27 +0000 Subject: Replace ttname with fc-query --- diff --git a/AUTHORS b/AUTHORS index 119c4ab..8fae8c3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,3 +9,4 @@ List of people who contributed patches and other improvements: Gregor Tätzner Petr Šabata Marcela Mašláňová +Benson Muite diff --git a/scripts/fonts-fc-query.sh b/scripts/fonts-fc-query.sh new file mode 100755 index 0000000..efdb7b7 --- /dev/null +++ b/scripts/fonts-fc-query.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# @group: fonts +# @text: Run fc-query on all fonts in package. +# @type: EXTRA + +msg="package to make a comprehensive font review." + +rpm -q fc-query &> /dev/null || { + echo "Cannot find fc-query command, install fontconfig $msg" + exit $FR_FAIL +} +if unpack_rpms; then + for font in $(find rpms-unpacked -name \*.ttf); do + echo "----> ${font#.*/}" + fc-query $font + echo + done &> fc-query.log +else + echo "Cannot unpack rpms!" >&2 + exit $FR_FAIL +fi + +echo "Check results in fonts/fc-query.log match spec file" +echo "and fontconfig xml file." +exit $FR_PASS diff --git a/scripts/fonts-ttname.sh b/scripts/fonts-ttname.sh deleted file mode 100755 index d56390c..0000000 --- a/scripts/fonts-ttname.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# @group: fonts -# @text: Run ttname on all fonts in package. -# @type: EXTRA - -msg="package to make a comprehensive font review." - -rpm -q ttname &> /dev/null || { - echo "Cannot find ttname command, install ttname $msg" - exit $FR_FAIL -} -if unpack_rpms; then - for font in $(find rpms-unpacked -name \*.ttf); do - echo "----> ${font#.*/}" - ttname $font - echo - done &> ttname.log -else - echo "Cannot unpack rpms!" >&2 - exit $FR_FAIL -fi - -echo "ttname analyze results in fonts/ttname.log." -exit $FR_PASS