FoX: X Error after fx_app.normalFont=

Hello all,

I try to set the normal font for the FXApp object after it has been run
(fx_app.normalFont = my_font), and I get the following errors:

X Error: code 7 major 56 minor 0: BadFont (invalid Font parameter).

The font of the main window is not changed, though newly created windows
have the requested font.

The font object itself is Ok, just because fx_app.normalFont= works well
with the same object before FXApp.run()

What’s wrong?

···


Best regards,
Yuri Leikind

Yuri Leikind wrote:

I try to set the normal font for the FXApp object after it has been run
(fx_app.normalFont = my_font), and I get the following errors:

X Error: code 7 major 56 minor 0: BadFont (invalid Font parameter).

The font of the main window is not changed, though newly created windows
have the requested font.

The font object itself is Ok, just because fx_app.normalFont= works well
with the same object before FXApp.run()

What’s wrong?

Did you call create() on the font before assigning it to the FXApp, i.e.

 my_font = FXFont.new(...)
 my_font.create
 fx_app.normalFont = my_font

?

Oops… No. Should have known…

···

On Fri, 7 May 2004 09:13:57 +0900 Lyle Johnson lyle@knology.net wrote:

 Did you call create() on the font before assigning it to the FXApp, i.e.
 
      my_font = FXFont.new(...)
      my_font.create
      fx_app.normalFont = my_font
 
 ?


Best regards,
Yuri Leikind