06-04-2024, 05:00 PM
(This post was last modified: 06-04-2024, 05:09 PM by grymmjack.
Edit Reason: Added extended information about linux and fonts
)
In Linux (in my case debian bookworm):
Then you can see where the font for courier is installed like this:
On my system it was:
So I simply modified Line 17 to be:
And it worked.
Note: if you don't have fc-list, you can get fontconfig package:
Find out like so:
Strangely, the man page is called fonts.conf
This will pull up the main package docs.
Code: (Select All)
sudo apt install ttf-mscorefonts-installer
Then you can see where the font for courier is installed like this:
Code: (Select All)
fc-list | grep cour
On my system it was:
Code: (Select All)
/usr/share/fonts/truetype/msttcorefonts/courbd.ttf: Courier New:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
So I simply modified Line 17 to be:
Code: (Select All)
LargeFont = _LOADFONT("/usr/share/fonts/truetype/msttcorefonts/courbd.ttf", 48, "monospace")
And it worked.
Note: if you don't have fc-list, you can get fontconfig package:
Code: (Select All)
sudo apt install -y fontconfig
Find out like so:
Code: (Select All)
grymmjack@funkunit:~
$ dpkg -S fc-list
fontconfig: /usr/share/man/man1/fc-list.1.gz
fontconfig: /usr/bin/fc-list
grymmjack@funkunit:~
$ sudo apt info fontconfig
Package: fontconfig
Version: 2.14.1-4
Priority: optional
Section: fonts
Maintainer: Debian freedesktop.org maintainers <pkg-freedesktop-maintainers@lists.alioth.debian.org>
Installed-Size: 632 kB
Depends: libc6 (>= 2.34), libfontconfig1 (>= 2.13.0), libfreetype6 (>= 2.2.1), fontconfig-config
Homepage: https://www.freedesktop.org/wiki/Software/fontconfig/
Tag: implemented-in::c, interface::commandline, role::program,
scope::utility, works-with::font
Download-Size: 449 kB
APT-Manual-Installed: no
APT-Sources: http://deb.debian.org/debian bookworm/main amd64 Packages
Description: generic font configuration library - support binaries
Fontconfig is a font configuration and customization library, which
does not depend on the X Window System. It is designed to locate
fonts within the system and select them according to requirements
specified by applications.
.
Fontconfig is not a rasterization library, nor does it impose a
particular rasterization library on the application. The X-specific
library 'Xft' uses fontconfig along with freetype to specify and
rasterize fonts.
.
This package contains a program to maintain the fontconfig cache
(fc-cache), a sample program to list installed fonts (fc-list), a program
to test the matching rules (fc-match) and a program to dump the binary
cache files in string form (fc-cat). It no longer makes fonts managed by defoma
available to fontconfig applications.
Strangely, the man page is called fonts.conf
Code: (Select All)
man fonts.conf
This will pull up the main package docs.