Bug 2350320

Summary: [hi] lohit-devanagari selected as monospace fonts with langpacks-hi
Product: [Fedora] Fedora Reporter: Twinkle <tpardesh>
Component: google-noto-fontsAssignee: Akira TAGOH <tagoh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: ajax, fonts-bugs, gnome-sig, i18n-bugs, mclasen, petersen, pwu, rstrode, sshil, tagoh
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-11 09:44:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Twinkle 2025-03-06 13:01:13 UTC
While using system in Hindi locale, lohit-devanagari is selected as monospace fonts which results in wrong output of commmand "LANG=hi_IN.utf8 fc-match monospace"

Reproducible: Always

Steps to Reproduce:
1. Install system in hi_IN locale
2. Open terminal and type "LANG=hi_IN.utf8 fc-match monospace" and press enter

Actual Results:  
1. Output of the command "LANG=hi_IN.utf8 fc-match monospace" is "lohit-devanagari-Regular"

Expected Results:  
1.  Expected output of the command "LANG=hi_IN.utf8 fc-match monospace" should not be "lohit-devanagari-Regular"

Comment 1 Sudip Shil 2025-03-07 07:39:36 UTC
problem lies in this file: /etc/fonts/conf.d/69-nonlatin.conf
<alias>
  <family>monospace</family>
  <prefer>
    <family>Lohit Bengali</family>
    <family>Lohit Gujarati</family>
    <family>Lohit Hindi</family>
    <family>Lohit Marathi</family>
    <family>Lohit Maithili</family>
    <family>Lohit Kashmiri</family>
    <family>Lohit Konkani</family>
    <family>Lohit Nepali</family>
    <family>Lohit Sindhi</family>
    <family>Lohit Punjabi</family>
    <family>Lohit Tamil</family>
    <family>Lohit Malayalam</family>
    <family>Lohit Kannada</family>
    <family>Lohit Telugu</family>
    <family>Lohit Oriya</family>
    <family>LKLUG</family>
  </prefer>
</alias>


Lohit Devanagari, Lohit Bengali these are not monospace fonts. This configuration forces them as the default monospace font for hindi, bengali and others.
and also /etc/fonts/conf.d/66-lohit-*-fonts.conf fonts are not explicitly define monospace, so the main problem remains in 69-nonlatin.conf.





solution: removing lohit fonts from the `<family>monospace</family>` section in 69-nonlatin.conf file and instead adding the monospace fonts like Liberation Mono.

Comment 2 Akira TAGOH 2025-07-11 09:43:04 UTC
This should be fixed in google-noto-fonts-20250701-2.fc43 as a part of https://fedoraproject.org/wiki/Changes/SetDefaultMonospaceFallbackFont:

$ fontquery-pkgdiff --loose-comparison -l hi lohit-devanagari-fonts-2.95.5-5.fc43.noarch.rpm
* Comparison on rawhide                                                                                 
* This may take some time...(1/1)                                                                       
<sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute                       
* Copying packages...
* Installing packages...
* This may take some time...(1/1)
<sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
  Language                   default sans               default serif              default mono          
- Hindi(hi)                  Noto Sans Devanagari       Noto Serif Devanagari      Noto Sans Devanagari  
+                                                                                  Lohit Devanagari      

$ fontquery-pkgdiff --loose-comparison -l hi lohit-devanagari-fonts-2.95.5-5.fc43.noarch.rpm google-noto-*20250701-2*
* Comparison on rawhide
* This may take some time...(1/1)
<sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
* Copying packages...
* Installing packages...
* This may take some time...(1/1)
<sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
  Language                   default sans               default serif              default mono              
  Hindi(hi)                  Noto Sans Devanagari       Noto Serif Devanagari      Noto Sans Devanagari