Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-04

TFPImageCanvas TextOut raise an exception

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik
to ik
Solved it.
I needed to do the following:
Canvas.Font               := TFreeTypeFont.create;
FontMgr.SearchPath := '/usr/share/fonts/TTF/';

Then it stop having problems.

Ido
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il

ik wrote 19 lines
Hello, When I try to do the following: Canvas.TextOut(5, WhereY, Text); to an image, I get the exception of PixelCanvasException with the message of Not Available. How can I draw text on a canvas using TFPImageCanvas ? Thanks Ido LINESIP - Opening the source for communication http://www.linesip.com http://www.linesip.co.il

Reply by email