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

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

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
Felipe Monteiro de Carvalho
to ik

In the wiki there is a tutorial, but the wiki seams down at the moment.

Felipe Monteiro de Carvalho
ik
to Felipe Monteiro de Carvalho

On Thu, Apr 7, 2011 at 23:13, Felipe Monteiro de Carvalho <

wrote: In the wiki there is a tutorial, but the wiki seams down at the moment.

That's how I figured it out (and also grep :))

-- Felipe Monteiro de Carvalho