[Lazarus] change Font on TButton do not work?

Josef Schnieder mail at josef-schnieder.de
Sun Jan 31 19:42:19 CET 2016


Hallo,

I have  an self-created TTF-Font with graphic symbols. f.e.  an Symbol 
like "*" instead of "A".

Now I assign:

MyButton.Caption :=  'A';
MyButton.Font.Name:=  'MyFont';
MyButton.refresh;


But the button caption is unchanged. It appears an "A" instead of "*".
I tested the Font in Libreoffice and it works well.

any idea?

In the IDE the button caption will also be unchanged, when I change the 
font.

best regards
Josef






More information about the Lazarus mailing list