docs: scripts/check-variable-fonts.sh: Improve commands for detection
authorAkira Yokosawa <akiyks@gmail.com>
Sat, 27 Apr 2024 08:24:11 +0000 (17:24 +0900)
committerJonathan Corbet <corbet@lwn.net>
Thu, 2 May 2024 16:14:52 +0000 (10:14 -0600)
commit5384258f4ef0c27cc9d5255ce4992f13656e215d
treea54c1fbdf1fb702146e639cb6a7514e36ead7d33
parentaf3e4a5ab9a017da9cf624791629e2df710a171c
docs: scripts/check-variable-fonts.sh: Improve commands for detection

As mentioned in "Assumption:", current grep expression can't catch
font files whose names are changed from upstream "Noto CJK fonts".

To avoid false negatives, use command of the form:

    fc-list : file family variable

, where ":" works as a wildcard pattern.

Variable fonts can be detected by filtering the output with
"variable=True" and "Noto CJK" font-family variants.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/c62ba2e6-c124-4e91-8011-cb1da408a3c5@gmail.com
scripts/check-variable-fonts.sh