Outline Font Drawing
- From: "Peter Bowie" <peter@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 21:24:50 GMT
To draw some outline text I use the following code
BeginPath(canvashandle);
canvas.textout(10, 10, 'Hello World');
EndPath(canvashandle);
StrokePath(canvashandle);
This works just fine.
Now I need to draw a widestring variable. Instead of Textout I'm using the
following procedure:
BeginPath(canvashandle);
ExtTextOutW(canvashandle, 10, 10, ETO_CLIPPED, @GRect,
pWideChar(ws), Length(ws), nil);
EndPath(canvashandle);
StrokePath(canvashandle);
This however doesn't seem to work. The Textout and ExtTextOutW
procedures both work without the Beginpath/Endpath.
Any ideas how I can fix this? I need to be able to draw Widestring outlined
strings to a canvas.
Thanks,
Peter
.
- Follow-Ups:
- Re: Outline Font Drawing
- From: Peter Bowie
- Re: Outline Font Drawing
- Prev by Date: Re: turbo pascal question
- Next by Date: Re: Outline Font Drawing
- Previous by thread: turbo pascal question
- Next by thread: Re: Outline Font Drawing
- Index(es):
Relevant Pages
|