Bug 2350320 - [hi] lohit-devanagari selected as monospace fonts with langpacks-hi
Summary: [hi] lohit-devanagari selected as monospace fonts with langpacks-hi
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: google-noto-fonts
Version: 43
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-06 13:01 UTC by Twinkle
Modified: 2025-07-11 09:44 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-11 09:44:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.