13,826
社区成员
发帖
与我相关
我的任务
分享
// 1
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
//Canvas->Font 首先设置字体,大小.才能知道你需要知道的字体的宽高
int cn_h = Canvas->TextHeight("中");
int cn_w = Canvas->TextWidth("中");
int en_h = Canvas->TextHeight("A");
int en_w = Canvas->TextWidth("A");
}