[Lazarus] Default font

Antônio antoniog12345 at gmail.com
Fri Nov 11 16:19:11 CET 2011


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 <tc at epidata.dk>:
> 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
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>




More information about the Lazarus mailing list