Bug 269702

Summary: x11/gnome: default monospace font for Gnome is not installed
Product: Ports & Packages Reporter: Paul Dufresne <dufresnep>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Open ---    
Severity: Affects Only Me CC: fernape, gnome, grahamperrin, tellesp2002
Priority: --- Flags: fernape: maintainer-feedback? (gnome)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
default font (show wide chars in terminal)
none
with monospcace size 10 font none

Description Paul Dufresne 2023-02-20 04:08:36 UTC
The text in gnome-terminal appeared very wide.

With gnome-tweaks, I discovered that the font for monospace was: none.

Changing it to: monospace, make gnome-terminal much more normal.

I wish monospace would be the default font for new users... rather than no font.
Comment 1 Paul Dufresne 2023-02-20 04:30:16 UTC
In dconf-editor, I see that the default of:
Schema: org.gnome.desktop.interface
monospace-default-name default to: 'Source Code Pro 10'

But this font does not seems to be installed (does not appears in choice of gnome-tweaks).
Comment 2 Paul Dufresne 2023-02-20 04:34:47 UTC
Created attachment 240270 [details]
default font (show wide chars in terminal)
Comment 3 Paul Dufresne 2023-02-20 04:35:23 UTC
Created attachment 240271 [details]
with monospcace size 10 font
Comment 4 Paul Dufresne 2023-02-23 23:39:11 UTC
Apparently this is the default Gnome value:
https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/issues/26

But what I see there, is the package that seems to control that (assigned):
https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas
Comment 5 Paul Telles (Starcat) 2024-06-15 18:22:28 UTC
IMHO, this is a terrible bug as it turns a lot of people off and leaves them with a bad impression of FreeBSD that is unwarranted.

My suggested workaround:

1.) Install Google TrueType fonts -- x11-fonts/google-fonts
2.) As an unprivileged desktop user, set the default monospace font:

$ dbus-run-session gsettings set org.gnome.desktop.interface monospace-font-name 'Noto Sans Mono 10'

3.) Verify the change with fc-match and/or gsettings:

$ fc-match monospace
NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"
$ dbus-run-session gsettings list-recursively org.gnome.desktop.interface | grep monospace-font-name
org.gnome.desktop.interface monospace-font-name 'Noto Sans Mono 10'

NOTE: The dconf-editor GUI tool can also be used to view and edit GSettings values.