字体特效(100分)

  • 主题发起人 主题发起人 xjc123
  • 开始时间 开始时间
X

xjc123

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样做斜体字,有没有字体特效的控件
 
有的,留下email我发给你啊
 
有没有FONT的属性?如果有就好办,例如:
label1.Font.Style := [fsItalic];
 
xjc10@163.com
 
lzwjf发往此邮箱
 
procedure AngleTextOut(CV: TCanvas;
const sText: String;
x, y, angle:integer);
var
LogFont: TLogFont;
SaveFont: TFont;
begin

SaveFont := TFont.Create;
SaveFont.Assign(CV.Font);
GetObject(SaveFont.Handle, sizeof(TLogFont), @LogFont);
with LogFontdo

begin

lfEscapement := angle *10;
lfPitchAndFamily := FIXED_PITCH or FF_DONTCARE;
end;

{with}
CV.Font.Handle := CreateFontIndirect(LogFont);
SetBkMode(CV.Handle, TRANSPARENT);
CV.TextOut(x, y, sText);
CV.Font.Assign(SaveFont);
SaveFont.Free;
end;



*********************************
procedure TForm1.Button1Click(Sender: TObject);

var
lf : TLogFont;

tf : TFont;

begin

with Form1.Canvasdo
begin

Font.Name := 'Arial';

Font.Size := 24;

tf := TFont.Create;

tf.Assign(Font);

GetObject(tf.Handle, sizeof(lf), @lf);

lf.lfEscapement := 450;

lf.lfOrientation := 450;

tf.Handle := CreateFontIndirect(lf);

Font.Assign(tf);

tf.Free;

TextOut(20, Height div 2, 'Rotated Text!');

end;


end;


==================================
procedure TForm1.FormMouseDown(Sender: TObject;
Button: TMouseButton;
Shift: TShiftState;
X, Y: Integer);
var
LogFont : TLogFont;
newFont : TFont;
begin

with Form1.Canvasdo

begin

Font.Name := '黑体';
// 字体
Font.Size := 32;
// 字号
Font.Color:= $00ffcc;
// 颜色
// 创建新字体
newFont := TFont.Create;
newFont.Assign(Font);
// 新字体继承窗体字体的属性
// 为新字体设置旋转属性
GetObject(newFont.Handle, sizeof(LogFont), @LogFont);
LogFont.lfEscapement :=600;
//角度*10
LogFont.lfOrientation :=600;
//应设为同样的值
LogFont.lfWidth:=20;
//每个字符的大小
LogFont.lfHeight:=90;
newFont.Handle := CreateFontIndirect(LogFont);
Font.Assign(newFont);
newFont.Free;
// 在鼠标按下的位置显示文字
TextOut(X, Y, '旋转文字Demo');
end;

end;


 
已经发了,请查收!
 
你看看陈宽达的
delphi深度历险吧
里面有例子
 
给退回来了,你的邮箱换一个把
The attached message had PERMANENT fatal delivery errors!

After one or more unsuccessful delivery attempts the attached message has
been removed from the mail queue on this server. The number and frequency
of delivery attempts are determined by local configuration parameters.

YOUR MESSAGE WAS NOT DELIVERED TO ANY OF IT'S RECIPIENTS!

The following addresses did NOT receive a copy of your message:

> xjc10@163.com
> xjc10@163.com

--- Session Transcript ---
MX-record resolution of [163.com] in progress (DNS Server: 211.155.224.21)...
P=050 D=163.com TTL=(13) MX=[m247.163.com] {202.108.44.247}
P=050 D=163.com TTL=(13) MX=[m246.163.com] {202.108.44.246}
P=050 D=163.com TTL=(13) MX=[m229.163.com] {202.108.44.229}
P=050 D=163.com TTL=(13) MX=[m218.163.com] {202.108.44.218}
P=050 D=163.com TTL=(13) MX=[m214.163.com] {202.108.44.214}
P=050 D=163.com TTL=(13) MX=[m210.163.com] {202.108.44.210}
P=050 D=163.com TTL=(13) MX=[m209.163.com] {202.108.44.209}
P=050 D=163.com TTL=(13) MX=[m208.163.com] {202.108.44.208}
P=050 D=163.com TTL=(13) MX=[m207.163.com] {202.108.44.207}
Attempting MX: P=050 D=163.com TTL=(13) MX=[m207.163.com] {202.108.44.207}
Attempting SMTP connection to [202.108.44.207 : 25]
Waiting for socket connection...
Socket connection established
Waiting for protocol initiation...
220 mx1.163.com ESMTP
EHLO e0571.com
250-mx1.163.com
250-PIPELINING
250-SIZE 4200000
250-ETRN
250 8BITMIME
MAIL From:<wjf@e0571.com> SIZE=4323668
552 Message size exceeds fixed limit
QUIT
--- End Transcript ---

: Message contains [1] file attachments
 
后退
顶部