I recently installed Kubuntu 20.10 on a machine and the default monospace font in Konsole and other locations is "Monospace". When I go to an older installation of Kubuntu (which has now been upgraded to 20.10) and choose "Monospace" as the font, it does not look anything like the one I see in my new machine. I think "Monospace" is just a symlink to some other font in both the cases. It looks like the older machine's "Monospace" points to Liberation Mono (it's just my guess). How can I find out which monospace font the latest version of KDE's "Monospace" is pointing to?
Announcement
Collapse
No announcement yet.
What is the Monospace font in Kubuntu Groovy
Collapse
This topic is closed.
X
X
-
In my Kubuntu 20.04.2 installation "Monospace" fonts are brought in by various packages, mainly Python ones.
In the KMenu click on Settings -> Fonts -> Font Management and then put "Monospace" in the search bar. On my system none are shown because they are not system fonts. If you search for "mono" instead you'll see a list of fonts that have a mono style included.
IF I open Muon and search for "Monospaced" I see a list of 7 monospaced fonts, none of which are installed on my machine. You can install one or all of them. I suspect that you can also download monospaced fonts from various internet sites (trust but verify) and install them as wellLast edited by GreyGeek; Feb 14, 2021, 01:02 PM."A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
– John F. Kennedy, February 26, 1962.
- Top
- Bottom
-
You know you can select whatever monospaced font you want in System Settings > Fonts > Fixed width, right? WHen the selection windows opens, click the "Show only monospaced fonts" box and you'll get only those.
IDK why the developer decided to name it "Fixed Width" rather than "Monospaced", the latter being a more accurate description IMO.
- Top
- Bottom
Comment
-
Thank you everyone for the helpful answers. I know how to install and change fonts. What I was not able to find out was which monospace font it is that "Monospace" is matched to, by default. Thank to you @kubicle now I know that in my older system, "Monospace" points to "Cousine" whereas the in the newer machines it points to "Noto Sans Mono" (not "Noto Mono"; don't know why there are two of them). For example, my old system shows this:
Code:$ fc-match Monospace Cousine-Regular.ttf: "Cousine" "Regular"
- Top
- Bottom
Comment
-
Originally posted by kayvee View PostNow that I know what "Monospace" is matched to, is there a way I can change it to something else?
System wide fontconfig settings are in /etc/fonts, but since it can be a bit intimidating (with some wizardry involved), I'd recommend starting out with per-user configuration (unless you really really need a system wide setting).
Example per-user config file ($HOME/.config/fontconfig/conf.d/90-mymonospace.conf):
Code:<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <!-- Set preferred monospace font. --> <alias> <family>monospace</family> <prefer><family>Hack</family></prefer> </alias> </fontconfig>
You need to relog (or reboot) for the change to take effect.
Code:[FONT=monospace][COLOR=#18B218]fc-match[/COLOR] Monospace Hack-Regular.ttf: "Hack" "Regular" [/FONT]
- Top
- Bottom
Comment
-
Originally posted by kayvee View Post..."Noto Sans Mono" (not "Noto Mono"; don't know why there are two of them)...Last edited by oshunluvr; Feb 14, 2021, 05:59 PM.
- Top
- Bottom
Comment
-
Originally posted by claydoh View PostThis does not work? Or am I missing something?
- Top
- Bottom
Comment
-
Originally posted by kubicle View PostOf course it does, but the OP probably has a reason why he wants to change the "Monospace" font, since he specifically said he knows "how to install and change fonts". He could be using software that does not respect KDE font settings, or have a multitude of paragraph styles configured to use "Monospace" in publishing software, for example.
- Top
- Bottom
Comment
Comment