Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-11

Default font

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi List.

How do get the font name and size of the default fonts?

If I simply access eg. form.font.name, I get "default" and likewise size is 0 (nul), but
I would like to get the actual font and size used to render what I see on my form.

Is this possible?

Kind regards,
Torsten Bonde Christiansen.

Reply by email

zeljko
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 10 lines
Hi List. How do get the font name and size of the default fonts? If I simply access eg. form.font.name, I get "default" and likewise size is 0 (nul), but I would like to get the actual font and size used to render what I see on my form. Is this possible?

afaik not if you don't access ws code directly.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111111/cb607189/attachment.html>

Reply by email

Torsten Bonde Christiansen
to zeljko
zeljko wrote 26 lines
On Friday 11 of November 2011 14:46:08 Torsten Bonde Christiansen wrote: > Hi List. > > How do get the font name and size of the default fonts? > > If I simply access eg. form.font.name, I get "default" and likewise size > is 0 (nul), but > I would like to get the actual font and size used to render what I see > on my form. > > Is this possible? afaik not if you don't access ws code directly.

How should I do this - even through ws code?

-Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111111/e4bf691b/attachment.html>

Reply by email

Antônio
to Torsten Bonde Christiansen

For me, Screen.SystemFont.Name and Screen.SystemFont.Size return name and size of a font which are visually the same as the form (you can test for yourself).

Ant?nio

2011/11/11 Torsten Bonde Christiansen :

Show quoted text 37 lines
On 2011-11-11 15:00, zeljko wrote: On Friday 11 of November 2011 14:46:08 Torsten Bonde Christiansen wrote: > Hi List. > > How do get the font name and size of the default fonts? > > If I simply access eg. form.font.name, I get "default" and likewise size > is 0 (nul), but > I would like to get the actual font and size used to render what I see > on my form. > > Is this possible? afaik not if you don't access ws code directly. How should I do this - even through ws code? -Torsten. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email