My System:
Quote: " Version Linux Mint 19.3 Tricia 64-bit
Kernel Linux 5.3.0-51-generic x86_64
MATE 1.22.20-51
"
Here is Code
/ Project: UsingFonts
// Created: 2016-12-13
//*** Include required library files ***
#include "/Function Library/CoreLibrary.agc"
type GameType
font as integer
txt as integer
endtype
//ID of font used
//Text resource’s ID
global g as GameType
//***************************************
//***
//*** Main program
//***************************************
InitialiseScreen(1024,768,"Using Text Fonts", 0xA8A8A8,%1111)
LoadResources()
CreateInitialLayout()
do
Sync()
loop
//***************************************
//***
//*** Functions
//***
//***************************************
function LoadResources()
//*** If Impact font not found ***
if GetSystemFontExists("Impact") = 0
//*** Display error message and use default font ***
Message("Font not found")
g.font = 0
else
//*** Load Impact font ***
g.font = LoadFont("Impact")
endif
endfunction
function CreateInitialLayout()
//*** Create text resources which uses loaded font ***
g.txt = CreateText("ABcd")
SetTextFont(g.txt,g.font)
endfunction
The font is installed on my Linux. The program reports an error that it could not be found.
Who can help me?