Re: Where are printer fonts set in CUPS ?
Jeremy,
Thanks for posting back. I did not know the answer. It is interesting to learn how.
George
On Sunday, 11-08-2024 at 13:33 jeremy ardley wrote:
>
>
> 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)
>
>
Reply to: