From Fedora Project Wiki

m (missed some template)
(Update URL)
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{autolang|base=yes}}
{{QA/Test_Case
{{QA/Test_Case
|description=This testcase is to check that fonts packages for your language is correctly installed.
|description=This testcase is to check that fonts packages for your language is correctly installed. This test case is applicable only for indic and cjk languages.
|actions=
|actions=
# Log in your desktop
# Log in your desktop
# Download a test script from http://tagoh.fedorapeople.org/fonts/fc-test.sh
# Open a terminal
# Open a terminal
# Run either <code><nowiki>fc-match sans:lang=$(echo $LANG|sed -e 's/^\(.*\)_.*/\1/')</nowiki></code> or <code><nowiki>fc-match sans:lang=$(echo $LANG`|`sed -e 's/_/-/g' -e 's/\..*//g')</nowiki></code> according to your current locale
# Run the script using command "sh fc-test.sh"
# Similarly for serif: Run either <code><nowiki>fc-match serif:lang=$(echo $LANG|sed -e 's/^\(.*\)_.*/\1/')</nowiki></code> or <code><nowiki>fc-match serif:lang=$(echo $LANG|sed -e 's/_/-/g' -e 's/\..*//g')</nowiki></code> according to your current locale
# Compare the result to [http://tagoh.fedorapeople.org/fonts/status/current.html the font packages list]
# Similarly for monospace: Run either <code><nowiki>fc-match monospace:lang=$(echo $LANG|sed -e 's/^\(.*\)_.*/\1/')</nowiki></code> or <code><nowiki>fc-match monospace:lang=$(echo $LANG|sed -e 's/_/-/g' -e 's/\..*//g')</nowiki></code> according to your current locale
 
|results=
|results=
# Compare the result to the font packages list (TBD)
# Script output should match the font packages list.
#* Example output for Gujarati language:
<pre>
$ sh fc-test.sh
sans[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
monospace[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
sans[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
monospace[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
</pre>
 
}}
}}


[[Category:I18n_Installation]]
[[Category:I18n_Installation]]

Revision as of 05:44, 17 October 2022

Description

This testcase is to check that fonts packages for your language is correctly installed. This test case is applicable only for indic and cjk languages.


How to test

  1. Log in your desktop
  2. Download a test script from http://tagoh.fedorapeople.org/fonts/fc-test.sh
  3. Open a terminal
  4. Run the script using command "sh fc-test.sh"
  5. Compare the result to the font packages list

Expected Results

  1. Script output should match the font packages list.
    • Example output for Gujarati language:
$ sh fc-test.sh 
sans[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
monospace[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
sans[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
monospace[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"