Sign in Join

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

Mailing lists / lazarus / 2016-01

change Font on TButton do not work?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Josef Schnieder

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

Reply by email

Josef Schnieder
to Josef Schnieder

some informations about the enviroment:
FPC 3.1.1
Lazarus 1.7 Rev. 51308
SUSE 42.1

best regards
Josef

Josef Schnieder wrote 30 lines
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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Josef Schnieder
to Bart

I modified the font:
First the encoding was "symbol" -> problem as described (it doesn't matter, when i change the charset)
than copy the chars, so that the encoding is "UnicodeBmp" -> problem is solved

The solution for me is to modify the font.

best regards
Josef

Bart wrote 15 lines
On 1/31/16, Josef Schnieder wrote: > But the button caption is unchanged. It appears an "A" instead of "*". > I tested the Font in Libreoffice and it works well. > > any idea? Turn of themes. Bart -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email