Outline Font Drawing



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


.



Relevant Pages

  • Re: Writing text to an ATL::CImage?
    ... Use CImage::GetDC to obtain an HDC from the image, draw on it using the ... regular GDI API (see TextOut, DrawText et al), finally call ...
    (microsoft.public.vc.atl)
  • Text output on metafile / vector fonts library
    ... If I do it using TextOut then I am getting artifacts especially when the ... metafile is drawn with zoom. ... TextOut just stores character's bitmaps to metafile. ... draw basic text using usual GDI ...
    (microsoft.public.win32.programmer.gdi)
  • How to get width and height of a TextOut ?
    ... I want to print text in a Window with TextOut. ... I want to draw a rectangle ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Drawing antialiased font
    ... > Is it posible to make TextOut() or DrawText() draw> antialiased fonts programaticaly, without setting option> in control panel? ...
    (microsoft.public.win32.programmer.gdi)
  • Re: 3-D graph
    ... > I need to draw a 3-D surface containing n points. ... The i-th point ... Peter ... Prev by Date: ...
    (comp.soft-sys.matlab)