Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CrossMath Game
#4
In Linux (in my case debian bookworm):

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.
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
CrossMath Game - by SMcNeill - 06-04-2024, 03:48 AM
RE: CrossMath Game - by SMcNeill - 06-04-2024, 06:44 AM
RE: CrossMath Game - by SMcNeill - 06-04-2024, 04:37 PM
RE: CrossMath Game - by grymmjack - 06-04-2024, 05:00 PM
RE: CrossMath Game - by grymmjack - 06-04-2024, 05:04 PM
RE: CrossMath Game - by bplus - 06-04-2024, 05:11 PM
RE: CrossMath Game - by SMcNeill - 06-04-2024, 05:16 PM
RE: CrossMath Game - by bplus - 06-04-2024, 05:42 PM
RE: CrossMath Game - by bplus - 06-04-2024, 07:13 PM
RE: CrossMath Game - by SMcNeill - 06-04-2024, 10:35 PM
RE: CrossMath Game - by Dav - 06-05-2024, 11:54 AM



Users browsing this thread: 1 Guest(s)