TScreen 类 - 获取字体列表


unit Unit1;



interface



uses

  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

  Dialogs, StdCtrls;



type

  TForm1 = class(TForm)

    Memo1: TMemo;

    procedure FormCreate(Sender: TObject);

  end;



var

  Form1: TForm1;



implementation



{$R *.dfm}



procedure TForm1.FormCreate(Sender: TObject);

begin

  Memo1.ScrollBars := ssBoth;

  Memo1.Align := alLeft;

  Memo1.Clear;



  {通过 Screen 对象, 只此一句话即可获取字体列表}

  Memo1.Lines := Screen.Fonts;

end;



end.


 
   

你可能感兴趣的:(screen)