On Sat, 22 Feb 2003, Shigeru Miyata wrote:

> I guess you are trying to scale a bitmap font.  On my machine with
> Pentium 75MHz
> and 80MB RAM, it can take several minutes just to load a single Japanese
> font
> if it is a BDF and the requested size differ from the original one.
> Scaling a
> TrueType font is much faster (a few seconds).
> Also check if your font server supports deferglyphs option or something
> similar.
> With deferglyphs option turned on, a CJK font is internally divided into  
> dozens
> of chunks each contains 256 or so glyphs and only the required pieces
> are loaded,
> while without this option all glyphs in the font are loaded once when
> the font
> is opened.


Hm... I see. Then what can be your suggestion to resolve the problem, 
Miyata ? Remember that the environment setting in Angus machine should be 
quite standard with western locale. 
I also would like to point out that my implementation on XDrawString -> 
XmbDrawString is very incomplete, and this might be another cause of the 
problem. To introduce XmbDrawString, I adopted the minimal way. That is, 
wherever I need to change XDrawString->XmbDrawString, I  introduce  
XFontSet with XCreateFontSet, by not touching any part in lib/fonts.c in 
xforms source.  So it is not a complete i18n, but a little bit of 
emulating it, isn't it? 

Do you have any comments, or suggestion?


Regards,


cghan


Reply via email to