[fpc-pascal] Re: TFPImageCanvas TextOut raise an exception

ik idokan at gmail.com
Thu Apr 7 16:18:31 CEST 2011


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




On Thu, Apr 7, 2011 at 16:50, ik <idokan at gmail.com> wrote:

> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110407/3b525497/attachment.html>


More information about the fpc-pascal mailing list