[Fxruby-users] FXFont initialization is complex
Status: Inactive
Brought to you by:
lyle
From: Simon S. <ne...@ad...> - 2004-06-16 21:54:09
|
I went to my friends place and was hopeing to demonstrate my Aeditor GUI frontend to him. He uses windows.. I use linux. the #initialize method @font = FXFont.new( application, "lucidatypewriter", 24, FONTWEIGHT_BOLD, FONTSLANT_REGULAR, FONTENCODING_DEFAULT, FONTSETWIDTH_DONTCARE, FONTPITCH_FIXED ) the #create method def create super @font.create @back_buffer.create @canvas.setFocus update_title end First I tried changing to a windows specific font @font = FXFont.new(application, "Fixedsys") But that segfaulted <feature-request> I tried selecting a font via the fontselector.. but never managed to get it working. Better default-values would be nice. </feature-request> <feature-request> I tried add debug statements to the fxruby's sample editor, but had to write all fields manually that I wanted to see. It would be nice if #inspect was providing this information. </feature-request> I spend 30 minutes attempting to change font.. but unsuccessfully. Please make font handling more robust, to avoid segfaults ;-) Otherwise thanks Jeroen and Lyle for this great project. -- Simon Strandgaard |