On 10/8/24 14:00, jeremy ardley wrote:
How does CUPS select the font to use for text files and where can I edit that if I need to change to a different default font or style
Responding to myself.
How to Change the Default Monospace Font:
If you want to change the default monospace font to something else
(e.g., IBM Plex Mono or Courier), you can do so by creating or editing
the local.conf file in the /etc/fonts/ directory.
# Check The existing default font
fc-match monospace
NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"
# edit the configuration file
sudo nano /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family>
<prefer>
<family>IBM Plex Mono</family>
</prefer>
</alias>
</fontconfig>
# Refresh the cache
sudo fc-cache -f -v
# Check the default font has changed
fc-match monospace
IBMPlexMono-Regular.otf: "IBM Plex Mono" "Regular"
(It turns out that what I thought was IBM Plex was actually the quite similar Noto Sans Mono)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:07:54 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,058 |
Messages: | 6,416,627 |