canvas文字字體樣式有哪些?
1,控件頁Dialogs中找到FontDialog,放到Form上,名字叫FontDialog12,雙擊它修改為你要的字體,大小,顏色等3,Canvas的字體設(shè)為此字體,例如:Form1->Canvas->Font=FontDialog1->Font;Form1->Canvas->TextOutA(10,10,"你好,World");fontName屬性可以直接設(shè)置的,如:Form3->Image1->Canvas->Font->Height=35;Form3->Image1->Canvas->Font->Name="微軟雅黑";Form3->Image1->Canvas->TextOutA(10+146,5,"過程能力");Form3->Image1->Canvas->Font->Height=12;Form3->Image1->Canvas->Font->Name="MSSansSerif";