枚举系统可用字体<br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> Listbox1.Items := Screen.Fonts;<br> //Listbox控件的初始化<br>end;<br><br>procedure TForm1.ListBox1DrawItem(Control: TWinControl; Index: Integer;<br> Rect: TRect; State: TOwnerDrawState);<br>begin<br> with ListBox1.Canvas do<br> begin<br> FillRect(Rect);<br> Font.Name := ListBox1.Items[Index];<br> TextOut(Rect.Left+1, Rect.Top+1, ListBox1.Items[Index]);<br> end;<br>end;