Bug 1609239 - [gnome-terminal] The default Google Noto CJK fonts are not listed in the preference menu.
Summary: [gnome-terminal] The default Google Noto CJK fonts are not listed in the pref...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: fontconfig
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-27 10:56 UTC by Bhushan Barve
Modified: 2022-11-28 06:16 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
noto CJK fonts not available for selection in gnome-terminal (146.10 KB, image/png)
2018-07-30 06:47 UTC, Bhushan Barve
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github googlei18n noto-cjk issues 122 0 'None' closed Noto Sans Mono CJK fonts have no spacing property 2020-11-18 06:02:27 UTC

Description Bhushan Barve 2018-07-27 10:56:35 UTC
Description of problem: The Google Noto CJK fonts are not available for selection in the gnome-terminal preferences.Please refer attached screenshot.

[test@localhost ~]$ rpm -qa google-noto*
google-noto-sans-cjk-ttc-fonts-20170602-8.fc29.noarch
google-noto-sans-sinhala-fonts-20161022-8.fc29.noarch
google-noto-cjk-fonts-common-20170602-8.fc29.noarch
google-noto-fonts-common-20161022-8.fc29.noarch
google-noto-serif-cjk-ttc-fonts-20170602-8.fc29.noarch
google-noto-emoji-color-fonts-20180508-4.fc29.noarch


Version-Release number of selected component (if applicable):
Fedora-Workstation-Live-x86_64-Rawhide-20180723.n.0
google-noto-cjk-fonts-common-20170602-8.fc29.noarch
gnome-terminal-3.28.2-3.fc29.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install rawhide
2. launch gnome-terminal
3. Go to edit->preferences
4. click on the option for custom fonts and search 'noto'

Actual results:
No Google Noto CJK fonts listed.

Expected results:
Google Noto CJK fonts should be available for selection.

Additional info:
Installation locale was ja_JP

Comment 1 Egmont Koblinger 2018-07-27 11:11:07 UTC
gnome-terminal 3.28 only offers you monospace fonts.

I think it might require further investigation why Google Noto CJK is not believed to be a monospace font by the pango_font_family_is_monospace() function – if it actually is.

Alternatively, the change in gnome-terminal could be reverted if there's a good reason, and if the aforementioned function is not safe to rely on.

Until then, as a workaround you can set any font using dconf-editor (or command-line dconf) under /org/gnome/terminal/legacy/profiles:/:<profile_id>/font.

Comment 2 Bhushan Barve 2018-07-30 06:47:00 UTC
Created attachment 1471422 [details]
noto CJK fonts not available for selection in gnome-terminal

Comment 3 Akira TAGOH 2018-07-31 10:18:42 UTC
just tried the following workaround for testing on gnome-terminal (and emacs which apparently is checking spacing property in the code). run fc-cache to apply and didn't see any side-effects so far:

<fontconfig>
  <match target="scan">
    <test name="family"><string>Noto Sans Mono CJK JP</string></test>
    <edit name="spacing" mode="append"><const>dual</const></edit>
  </match>
  <match target="scan">
    <test name="family"><string>Noto Sans Mono CJK KR</string></test>
    <edit name="spacing" mode="append"><const>dual</const></edit>
  </match>
  <match target="scan">
    <test name="family"><string>Noto Sans Mono CJK SC</string></test>
    <edit name="spacing" mode="append"><const>dual</const></edit>
  </match>
  <match target="scan">
    <test name="family"><string>Noto Sans Mono CJK TC</string></test>
    <edit name="spacing" mode="append"><const>dual</const></edit>
  </match>
</fontconfig>

Comment 4 Jan Kurik 2018-08-14 08:40:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 5 Jens Petersen 2019-09-24 06:03:40 UTC
How about newer releases?

Comment 6 Akira TAGOH 2019-09-24 06:28:57 UTC
This still persists in f31. I didn't make any changes in fonts side. and still in discussion to improve determining spacing property in fontconfig.

Comment 7 Debarshi Ray 2020-09-24 13:53:22 UTC
Shouldn't this be reassigned to something in the text stack instead of gnome-terminal?

Comment 8 Akira TAGOH 2021-06-28 06:26:58 UTC
gnome-terminal just uses pango_font_family_is_monospace to deal with it. Pango depends on spacing property in fontconfig.
So reassigning to fontconfig.

Comment 9 Ben Cotton 2021-08-10 12:45:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.


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