[Lazarus] font.name=default

Salvatore Coppola coppolastudio at gmail.com
Wed Aug 20 17:58:32 CEST 2014


2014-08-16 12:40 GMT+02:00 Philippe <philippe at quarta.com.br>:

>  I wrote a program, used font.name=default for allmost everything ... it
> was looking as Arial font. Fine.
>
> It was on a Windows 8 machine.
>
> Then I copied the program to a Windows XP machine to check.
>
> Where static text and others are written with something looking as a New
> Times Roman ...
>  and sometimes not fitting in the field width ... and be splitted!
>
> I undestood there is something about windows default font. Googled ... ...
> ...
>
> On the my W8 machine default font (from registers) are Microsoft Sans
> Serif and Tahoma ... diferent.
>
> I made a test. In the attached image, the first text is with default, the
> second with Arial, both with bold mode. Arial was the closest font from
> default I found ... but still a bit diferent.
>
> Question 1): which default font is used with Lazarus ?
>
the theme fonts

> Question 2): is there a way I can set the default font in Lazarus?
>
I don't know if is possible in RAD way, but you can set the font you want
in on create event for each controls you want.

procedure TForm1.FormCreate(Sender: TObject);
var i: integer;
begin
    for i:=0 to ControlCount-1 do
      Controls[i].Font:=YOURFONT;
end;


> Thank for your help
>
> Philippe
>
> PS. F1 in font.name ... error 404.
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140820/efc92684/attachment-0003.html>


More information about the Lazarus mailing list