[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04184] Re: Partly converted English Ruby/Tk widget demo working.

From: Hidetoshi NAGAI <nagai@...23.dumbo.ai.kyutech.ac.jp>
Date: 2000-07-24 06:26:51 UTC
List: ruby-talk #4184
Conrad Schneiker <schneik@austin.ibm.com> writes:
> One curious thing that I noticed is that the individual widget demos run
> by the Ruby/Tk widget program start up noticeably slower on the AIX
> machine than on the NT machine, even though the AIX machine is much
> faster. Moreover, Ruby/Tk doesn't seem to be using more than a small
> fraction of the available CPU time of the AIX machine. Any idea of what
> it might be doing?

I think that the problem is based on 'font search'. 
You wrote 

> I've got the Ruby/Tk widget demo partly converted from Kanji to English. 

So, probably some texts to display are Japanese, aren't it? 

Many of(?) TrueType fonts on Windows have both of Japanese and English 
Glyph. But on X, Font files are separated by encoding. If you configure 
the font to 'Helvetica', Tk will search Japanese 'Helvetica' font to 
display Japanese text, and if you configure the font to 'Mincho', Tk 
will search English 'Mincho' font to display English text. But most of 
X environment will have no Japanese 'Helvetica' font or no English 
'Mincho' font. Therefore, Tk must search another font instead of the 
right font, and it will need long time.

Please define font aliases for Japanese 'Helvetica' font and so on. 
You will be able to get a little faster start up. 
-- 
                                  Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

In This Thread