10-05-2023, 07:45 PM
Make sure the spelling of the paths and the font name are exact. Linux is a case-sensitive operating system.
The paths will be different eg. on Debian that they will be on eg. Slackware. The starting path is usually `/usr/share/fonts` and then there might be a "TTF" or "OTF" directory, or the fonts might be classified by "family", which is roughly the font name such as "Liberation". You should not be interested in any other folder. There is one full of ancient fonts to be used by terminals, especially the startup "tty" ones, and other X-dot-org stuff.
You could put fonts under `/home/(user)/.local/share/fonts`. ("(user)" is your handle used to log into the desktop.) You will have to create that directory because a Linux installer will not do it for you. It's not recommended to use any other "local" path such as that for GIMP.
Make sure you're calling `_LOADFONT()` after the `SCREEN` is set. Once this drove me nuts, but with `_RGB()` because the latter kept returning values from zero to 15 instead of the long-integer mumbo-jumbo.
The paths will be different eg. on Debian that they will be on eg. Slackware. The starting path is usually `/usr/share/fonts` and then there might be a "TTF" or "OTF" directory, or the fonts might be classified by "family", which is roughly the font name such as "Liberation". You should not be interested in any other folder. There is one full of ancient fonts to be used by terminals, especially the startup "tty" ones, and other X-dot-org stuff.
You could put fonts under `/home/(user)/.local/share/fonts`. ("(user)" is your handle used to log into the desktop.) You will have to create that directory because a Linux installer will not do it for you. It's not recommended to use any other "local" path such as that for GIMP.
Make sure you're calling `_LOADFONT()` after the `SCREEN` is set. Once this drove me nuts, but with `_RGB()` because the latter kept returning values from zero to 15 instead of the long-integer mumbo-jumbo.