dear group,
how can i write text at an angle on a canvas using textout or any other
way.
will be indebted if anyone can help.
thanx
how can i write text at an angle on a canvas using textout or any other
way.
will be indebted if anyone can help.
thanx
Note that this generally only works with TrueType fonts.
Good luck.
Kurt
>how can i write text at an angle on a canvas using textout or any other
>way.
>will be indebted if anyone can help.
>thanx
efg
_________________________________________
efg's Computer Lab: http://infomaster.net/external/efg
MedTech Research Corporation, Lenexa, KS USA
procedure TForm1.AngleTextOut(const sText: String;x, y,angle:integer);
var
LogFont: TLogFont;
OldFont,NewFont : hFont;
begin
with LogFont do
begin
lfEscapement:= angle;
lfQuality:=PROOF_QUALITY;
end;
NewFont:=CreateFontIndirect(LogFont);
OldFont := SelectObject(Canvas.Handle, NewFont);
SetBkMode(Canvas.Handle, TRANSPARENT);
Windows.TextOut(Canvas.Handle,x,y, PChar(sText), Length(sText));
SelectObject(Canvas.Handle, OldFont);
DeleteObject(NewFont);
end;
1. How to write text angle on printer canvas
Hi.
I need to write text with angles on printer.
I use SetTextAngle to do in on a screen canvas but it does'nt work on a
printer canvas.
Does anyone know how to write text with angles on a printer.
Thanks
Aviran
2. WANTED: VRML to POV-Ray Translator
3. Help: writing text to window--controlling text size
6. glutInit?
8. Turbo C and text at an angle ?
9. Angled text
10. Drawing Text at an angle WITH a character underlined