From Fedora Project Wiki

mNo edit summary
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 2: Line 2:
|description=This test case ensures that the default fonts packages are properly installed.
|description=This test case ensures that the default fonts packages are properly installed.
|setup=
|setup=
Please note that fontquery won't work on Live and toolbox due to the podman's limitation. If you want to try, please make sure you installed Live on KVM or bare metal.
To install default fonts:
# dnf install default-fonts
Or only for particular language:
# dnf install default-fonts-<locale-code>
And then:
# dnf install fontquery
|actions=
|actions=
To install a default font for language, try:
To test on {{FedoraVersion|long|next}}:
  $ dnf install langpacks-core-font-<language/locale>
$ fontquery-diff {{FedoraVersionNumber|next}}
 
To test for a specific language, use the [https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes ISO 639 two-letter code], e.g. {{code|he}} for Hebrew:
This is the corresponding table among core-font packages in langpacks, language, and default fonts (dejavu-sans-fonts will be used as a default font unless it is particularly described)
$ fontquery-diff -l he {{FedoraVersionNumber|next}}
{{{!}} class="wikitable sortable collapsible" align="center" border="1" cellspacing="0" cellpadding="4" style="margin-left: 2em; border-collapse: collapse; border: 1px solid darkgray; background: #f9f9f9; color: black; empty-cells: show; text-align: center;"
{{!}}- style="background: #f2f2f2; color: black; text-align: center;"
! scope="col" width="300" {{!}} Package Name
! scope="col" width="100" {{!}} Language
! scope="col" width="300" {{!}} Default Font
{{!}}-
{{!}} langpacks-core-font-af {{!!}} Afrikaans {{!!}}
{{!}}-
{{!}} langpacks-core-font-am {{!!}} Amharic {{!!}} sil-abyssinica-fonts
{{!}}-
{{!}} langpacks-core-font-ar {{!!}} Arabic {{!!}}
{{!}}-
{{!}} langpacks-core-font-as {{!!}} Assamese {{!!}} lohit-assamese-fonts
{{!}}-
{{!}} langpacks-core-font-ast {{!!}} Asturian {{!!}}
{{!}}-
{{!}} langpacks-core-font-be {{!!}} Belarusian {{!!}}
{{!}}-
{{!}} langpacks-core-font-bg {{!!}} Bulgarian {{!!}}
{{!}}-
{{!}} langpacks-core-font-bn {{!!}} Bengali {{!!}} lohit-bengali-fonts
{{!}}-
{{!}} langpacks-core-font-bo {{!!}} Tibetan {{!!}} jomolhari-fonts
{{!}}-
{{!}} langpacks-core-font-br {{!!}} Breton {{!!}}
{{!}}-
{{!}} langpacks-core-font-bs {{!!}} Bosnian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ca {{!!}} Catalan {{!!}}
{{!}}-
{{!}} langpacks-core-font-cs {{!!}} Czech {{!!}}
{{!}}-
{{!}} langpacks-core-font-cy {{!!}} Welsh {{!!}}
{{!}}-
{{!}} langpacks-core-font-da {{!!}} Danish {{!!}}
{{!}}-
{{!}} langpacks-core-font-de {{!!}} German {{!!}}
{{!}}-
{{!}} langpacks-core-font-dz {{!!}} Bhutanese {{!!}}
{{!}}-
{{!}} langpacks-core-font-el {{!!}} Greek {{!!}}
{{!}}-
{{!}} langpacks-core-font-en {{!!}} English {{!!}}
{{!}}-
{{!}} langpacks-core-font-eo {{!!}} Esperanto {{!!}}
{{!}}-
{{!}} langpacks-core-font-es {{!!}} Spanish {{!!}}
{{!}}-
{{!}} langpacks-core-font-et {{!!}} Estonian {{!!}}
{{!}}-
{{!}} langpacks-core-font-eu {{!!}} Basque {{!!}}
{{!}}-
{{!}} langpacks-core-font-fa {{!!}} Persian {{!!}}
{{!}}-
{{!}} langpacks-core-font-fi {{!!}} Finnish {{!!}}
{{!}}-
{{!}} langpacks-core-font-fr {{!!}} French {{!!}}
{{!}}-
{{!}} langpacks-core-font-ga {{!!}} Irish {{!!}}
{{!}}-
{{!}} langpacks-core-font-gl {{!!}} Galician {{!!}}
{{!}}-
{{!}} langpacks-core-font-gu {{!!}} Gujarati {{!!}} lohit-gujarati-fonts
{{!}}-
{{!}} langpacks-core-font-he {{!!}} Hebrew {{!!}}
{{!}}-
{{!}} langpacks-core-font-hi {{!!}} Hindi {{!!}} lohit-devanagari-fonts
{{!}}-
{{!}} langpacks-core-font-hr {{!!}} Croatian {{!!}}
{{!}}-
{{!}} langpacks-core-font-hu {{!!}} Hungarian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ia {{!!}} Interlingua {{!!}}
{{!}}-
{{!}} langpacks-core-font-id {{!!}} Indonesian {{!!}}
{{!}}-
{{!}} langpacks-core-font-is {{!!}} icelandic {{!!}}
{{!}}-
{{!}} langpacks-core-font-it {{!!}} Italian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ja {{!!}} Japanese {{!!}} google-noto-sans-cjk-ttc-fonts
{{!}}-
{{!}} langpacks-core-font-ka {{!!}} Georgian {{!!}}
{{!}}-
{{!}} langpacks-core-font-kk {{!!}} Kazakh {{!!}}
{{!}}-
{{!}} langpacks-core-font-km {{!!}} Khmer {{!!}} khmeros-base-fonts
{{!}}-
{{!}} langpacks-core-font-kn {{!!}} Kannada {{!!}} lohit-kannada-fonts
{{!}}-
{{!}} langpacks-core-font-ko {{!!}} Korean {{!!}} google-noto-sans-cjk-ttc-fonts
{{!}}-
{{!}} langpacks-core-font-ku {{!!}} Kurdish {{!!}}
{{!}}-
{{!}} langpacks-core-font-lt {{!!}} Lithuanian {{!!}}
{{!}}-
{{!}} langpacks-core-font-lv {{!!}} Latvian {{!!}}
{{!}}-
{{!}} langpacks-core-font-mai {{!!}} Maithili {{!!}} lohit-devanagari-fonts
{{!}}-
{{!}} langpacks-core-font-mk {{!!}} Macedonian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ml {{!!}} Malayalam {{!!}} smc-meera-fonts
{{!}}-
{{!}} langpacks-core-font-mr {{!!}} Marathi {{!!}} lohit-marathi-fonts
{{!}}-
{{!}} langpacks-core-font-ms {{!!}} Malay {{!!}}
{{!}}-
{{!}} langpacks-core-font-my {{!!}} Burmese {{!!}} sil-padauk-fonts
{{!}}-
{{!}} langpacks-core-font-nb {{!!}} Norwegian Bokmål {{!!}}
{{!}}-
{{!}} langpacks-core-font-ne {{!!}} Nepali {{!!}} lohit-devanagari-fonts
{{!}}-
{{!}} langpacks-core-font-nl {{!!}} Dutch {{!!}}
{{!}}-
{{!}} langpacks-core-font-nn {{!!}} Nynorsk {{!!}}
{{!}}-
{{!}} langpacks-core-font-nr {{!!}} Southern Ndebele {{!!}}
{{!}}-
{{!}} langpacks-core-font-nso {{!!}} Northern Sotho {{!!}}
{{!}}-
{{!}} langpacks-core-font-or {{!!}} Odia {{!!}} lohit-odia-fonts
{{!}}-
{{!}} langpacks-core-font-pa {{!!}} Punjuabi {{!!}} gogle-noto-sans-gurmukhi-fonts
{{!}}-
{{!}} langpacks-core-font-pl {{!!}} Polish {{!!}}
{{!}}-
{{!}} langpacks-core-font-pt {{!!}} Portuguese {{!!}}
{{!}}-
{{!}} langpacks-core-font-ro {{!!}} Romanian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ru {{!!}} Russian {{!!}}
{{!}}-
{{!}} langpacks-core-font-si {{!!}} Sinhala {{!!}} google-noto-sans-sinhala-vf-fonts
{{!}}-
{{!}} langpacks-core-font-sk {{!!}} Slovak {{!!}}
{{!}}-
{{!}} langpacks-core-font-sl {{!!}} Slovenian {{!!}}
{{!}}-
{{!}} langpacks-core-font-sq {{!!}} Albanian {{!!}}
{{!}}-
{{!}} langpacks-core-font-sr {{!!}} Serbian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ss {{!!}} Swati {{!!}}
{{!}}-
{{!}} langpacks-core-font-sv {{!!}} Swedish {{!!}}
{{!}}-
{{!}} langpacks-core-font-ta {{!!}} Tamil {{!!}} lohit-tamil-fonts
{{!}}-
{{!}} langpacks-core-font-te {{!!}} Telugu {{!!}} lohit-telugu-fonts
{{!}}-
{{!}} langpacks-core-font-th {{!!}} Thai {{!!}} thai-scalable-waree-fonts
{{!}}-
{{!}} langpacks-core-font-tn {{!!}} Tswana {{!!}}
{{!}}-
{{!}} langpacks-core-font-tr {{!!}} Turkish {{!!}}
{{!}}-
{{!}} langpacks-core-font-ts {{!!}} Tsonga {{!!}}
{{!}}-
{{!}} langpacks-core-font-uk {{!!}} Ukrainian {{!!}}
{{!}}-
{{!}} langpacks-core-font-ur {{!!}} Urdu {{!!}} paktype-naskh-basic-fonts
{{!}}-
{{!}} langpacks-core-font-ve {{!!}} Venda {{!!}}
{{!}}-
{{!}} langpacks-core-font-vi {{!!}} Vietnamese {{!!}}
{{!}}-
{{!}} langpacks-core-font-xh {{!!}} Xhosa {{!!}}
{{!}}-
{{!}} langpacks-core-font-yi {{!!}} Yiddish {{!!}}
{{!}}-
{{!}} langpacks-core-font-zh_CN {{!!}} Simplified Chinese {{!!}} google-noto-sans-cjk-ttc-fonts
{{!}}-
{{!}} langpacks-core-font-zh_TW {{!!}} Traditional Chinese {{!!}} google-noto-sans-cjk-ttc-fonts
{{!}}-
{{!}} langpacks-core-font-zu {{!!}} Zulu {{!!}}
{{!}}}
|results=
|results=
One font package will be installed which have glyph coverage for certain language.
No difference should be reported on the output.
|optional=
|optional=
}}
}}


[[Category:I18n_Desktop]]
[[Category:I18n_Desktop]]
[[Category:I18n_Installation]]
[[Category:I18n_Test_Cases]]
[[Category:I18n_Test_Cases]]
[[Category:Package_dnf_test_cases]]
[[Category:Package_dnf_test_cases]]
[[Category:Package_langpacks_test_cases]]
[[Category:Package_langpacks_test_cases]]

Latest revision as of 02:40, 11 September 2024

Description

This test case ensures that the default fonts packages are properly installed.

Setup

Please note that fontquery won't work on Live and toolbox due to the podman's limitation. If you want to try, please make sure you installed Live on KVM or bare metal.

To install default fonts:

# dnf install default-fonts

Or only for particular language:

# dnf install default-fonts-<locale-code>

And then:

# dnf install fontquery 

How to test

To test on Fedora 42:

$ fontquery-diff 42

To test for a specific language, use the ISO 639 two-letter code, e.g. he for Hebrew:

$ fontquery-diff -l he 42

Expected Results

No difference should be reported on the output.