<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-16 12:40 GMT+02:00 Philippe <span dir="ltr"><<a href="mailto:philippe@quarta.com.br" target="_blank">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:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><u></u>
<div>
<p>I wrote a program, used <a href="http://font.name" target="_blank">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:rgb(204,204,204);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><br></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:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><p>Thank for your help</p><span class=""><font color="#888888">
<p>Philippe</p>
</font></span><p>PS. F1 in <a href="http://font.name" target="_blank">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" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div></div></div>