<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
So I've got a program that saves a graphic image, and I copied
chunks of it from
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://wiki.freepascal.org/fcl-image">http://wiki.freepascal.org/fcl-image</a>
because I'm new at this. However, whenever I draw text, it comes
out in black, and I wish to be able to change the colour. I've
hunted online and through the source code, and nothing seems to
work. Can someone tell me what I'm doing wrong?<br>
<br>
Image := TFPMemoryImage.Create (1025,513);<br>
Image.UsePalette := FALSE;<br>
Canvas := TFPImageCanvas.Create (Image);<br>
FontMgr.SearchPath:='/usr/share/fonts/truetype/ttf-dejavu/';<br>
AFont := TFreeTypeFont.Create;<br>
<br>
Canvas.brush.FPCOlor := colWhite;<br>
Canvas.pen.FPColor := colWhite;<br>
Canvas.Font := aFont;<br>
Canvas.Font.Name := 'DejaVuSerif';<br>
Canvas.Font.Size := 6 + ZoomFactor;<br>
<br>
</body>
</html>