<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>thank for your answer.</p>
<p>I found the default font on my machine/windows 8 is Segoe UI. I´ll check if it is avalaible under other version of Windows ...</p>
<p>your suggestion (looping controls) is interesting, I didn´t know it, but will change all the controls of the form ... and that is not what I need ... I just want to change the Lazarus default. So it will change the font of controls using font.name='Default' in the configuration/object inspector.</p>
<p>Philippe</p>
<p> </p>
<p>Em 20.08.2014 12:58, Salvatore Coppola escreveu:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr"><br />
<div class="gmail_extra"><br /><br />
<div class="gmail_quote">2014-08-16 12:40 GMT+02:00 Philippe <span><<a href="mailto:philippe@quarta.com.br">philippe@quarta.com.br</a>></span>:<br />
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-left-style: solid; padding-left: 1ex;"><span style="text-decoration: underline;"></span>
<div>
<p>I wrote a program, used <a href="http://font.name">font.name</a>=default for allmost everything ... it was looking as Arial font. Fine.</p>
<p>It was on a Windows 8 machine.</p>
<p>Then I copied the program to a Windows XP machine to check.</p>
<p>Where static text and others are written with something looking as a New Times Roman ...<br /> and sometimes not fitting in the field width ... and be splitted!</p>
<p>I undestood there is something about windows default font. Googled ... ... ...</p>
<p>On the my W8 machine default font (from registers) are Microsoft Sans Serif and Tahoma ... diferent.</p>
<p>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.</p>
<p>Question 1): which default font is used with Lazarus ?</p>
</div>
</blockquote>
<div>the theme fonts </div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-left-style: solid; padding-left: 1ex;">
<div>
<p>Question 2): is there a way I can set the default font in Lazarus?</p>
</div>
</blockquote>
<div>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.</div>
<div> </div>
<div>procedure TForm1.FormCreate(Sender: TObject);</div>
<div>var i: integer;</div>
<div>begin</div>
<div> for i:=0 to ControlCount-1 do</div>
<div> Controls[i].Font:=YOURFONT;</div>
<div>end;</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: #cccccc; border-left-style: solid; padding-left: 1ex;">
<div>
<p>Thank for your help</p>
<p>Philippe</p>
<p>PS. F1 in <a href="http://font.name">font.name</a> ... error 404.</p>
</div>
<br />--<br /> _______________________________________________<br /> Lazarus mailing list<br /><a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br /><a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br /><br /></blockquote>
</div>
</div>
</div>
<br />
<pre>--
_______________________________________________
Lazarus mailing list
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<p> </p>
</body></html>