-1
And people blz?
I am wanting to get the property of fonts installed in windows using Delphi.
can already get all fonts in a listbox now I need to get the name and extension of the font.
//lista todas as fontes.
procedure TForm1.Button1Click(Sender: TObject);
begin
ListBox1.Items := Screen.Fonts;
end;
//mostrar o nome fa fonte em um label.
procedure TForm1.ListBox1Click(Sender: TObject);
begin
Label1.Caption := ListBox1.Items[ListBox1.ItemIndex];
Label1.Font.Name := ListBox1.Items[ListBox1.ItemIndex];
end;
this is the code that I’m using to visualize all sources, now I need to take the name and extension of the same.
Wouldn’t it be better to list the files from the windows folder? Or if your "Screen" object already contains the information, you can add a pointer next to the item inserted in the listbox by retrieving the value and accessing the Screen object again.
– Leonardo Getulio
So Leonardo, I need to get exactly the name and extension of the source, so it’s recording in a bank. Example: the Arial Font has in its property the name of this way "Arial.ttf" precise preaches this, because the system I am using needs to consume the source in this way"
– user49181
You already have a list with the value "Arial.ttf" and etc? is the same list "Screen"?
– Leonardo Getulio
this being my problem Leonado, and takes the value "Arial.ttf", I want to get just this value ai, the screen is showing the name of the second source. example: Comic Sans MS = comic.ttf.
– user49181