From Fedora Project Wiki

No edit summary
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{admon/note|Obsolete|As of 2024-03-08, atagoh requested that this test case be replaced by [[QA:Testcase_default_font_installation]].}}
{{autolang|base=yes}}
{{autolang|base=yes}}
{{QA/Test_Case
{{QA/Test_Case
|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.
|description=This testcase is to check that fonts packages for your language is correctly installed. [http://tagoh.fedorapeople.org/fonts/status/current.html The reference table] was generated with all the langpacks installed. However, in most case, langpacks for a certain language only is installed.  So you may need to check this result from different aspect.  If the result is different to the table, that would means the font package on the table may overrode a default font. This is basically a bug in that font. This is a limitation in current test case since all the tables for languages needs to be generated for exact results.
 
For example, from https://bugzilla.redhat.com/show_bug.cgi?id=2093080#c3
<pre>
What the system tells us:
Sans -> NotoSansArabic-VF.ttf: "Noto Sans Arabic" "Regular"
Serif -> NotoNaskhArabic-VF.ttf: "Noto Naskh Arabic" "Regular"
Mono -> Vazirmatn[wght].ttf: "Vazirmatn" "Regular"
 
What the table provides and what we expect:
Sans -> NotoNaskhArabic-VF.ttf "Noto Naskh Arabic" "Regular"
Serif -> NotoNaskhArabic-VF.ttf: "Noto Naskh Arabic" "Regular"
Mono -> PakTypeNaskhBasic.ttf: "PakType Naskh Basic" "Regular"
</pre>
This means paktype-naskh-basic-fonts affected our default font, vazirmatn-fonts. In this case, we need to fix something in paktype-naskh-basic-fonts.
|actions=
|actions=
# Log in your desktop
# Log in your desktop
Line 7: Line 23:
# Open a terminal
# Open a terminal
# Run the script using command "sh fc-test.sh"
# Run the script using command "sh fc-test.sh"
# Compare the result to [http://tagoh.fedorapeople.org/fonts/status/current.html the font packages list]


|results=
|results=
# Compare the result to [http://tagoh.fedorapeople.org/fonts/fedora-current-defaultfonts.html the font packages list]
# Script output should match the font packages list.
# Expected result for the above script should be as below:
#* Example output for Gujarati language:
<pre>
For example, for Gujarati language:
$ sh fc-test.sh  
 
[sweta@dhcp201-186 ડાઉનલોડ]$ sh fc-test.sh  
 
sans[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
sans[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
monospace[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
monospace[gu]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
sans[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
sans[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
serif[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"
monospace[gu-in]: Lohit-Gujarati.ttf: "Lohit Gujarati" "Regular"
 
</pre>
[sweta@dhcp201-186 ડાઉનલોડ]$


}}
}}


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

Latest revision as of 00:27, 9 March 2024

Obsolete
As of 2024-03-08, atagoh requested that this test case be replaced by QA:Testcase_default_font_installation.

Description

This testcase is to check that fonts packages for your language is correctly installed. The reference table was generated with all the langpacks installed. However, in most case, langpacks for a certain language only is installed. So you may need to check this result from different aspect. If the result is different to the table, that would means the font package on the table may overrode a default font. This is basically a bug in that font. This is a limitation in current test case since all the tables for languages needs to be generated for exact results.

For example, from https://bugzilla.redhat.com/show_bug.cgi?id=2093080#c3

What the system tells us:
Sans -> NotoSansArabic-VF.ttf: "Noto Sans Arabic" "Regular"
Serif -> NotoNaskhArabic-VF.ttf: "Noto Naskh Arabic" "Regular"
Mono -> Vazirmatn[wght].ttf: "Vazirmatn" "Regular"

What the table provides and what we expect:
Sans -> NotoNaskhArabic-VF.ttf "Noto Naskh Arabic" "Regular"
Serif -> NotoNaskhArabic-VF.ttf: "Noto Naskh Arabic" "Regular"
Mono -> PakTypeNaskhBasic.ttf: "PakType Naskh Basic" "Regular"

This means paktype-naskh-basic-fonts affected our default font, vazirmatn-fonts. In this case, we need to fix something in paktype-naskh-basic-fonts.


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"