Hello all developers,

  I found that Kaffe might not support i18n well, which is really bad
for handling CJK. I did primitive patches on X AWT backend for i18n
improvements. 

  Also, you might want to modify
libraries/javalib/java/awt/Defaults.java for the above patch. The
default font definitions in Kaffe is not flexible, and we need some
dirty things like:

  String fntCat = Integer.toString(res) + '-' + res + "-*-*-*-*";
  //FsDefault = "-b&h-lucida-%s-%s-*-*-*-%d-" + fntCat;
  FsDefault = "-adobe-helvetica-%s-%s-*-*-*-%d-"  + fntCat;
  FsMonospaced = "-adobe-courier-%s-%s-*-*-*-%d-" + fntCat;
  FsSansSerif = "-adobe-helvetica-%s-%s-*-*-*-%d-" + fntCat;
  FsSerif = "-adobe-times-%s-%s-*-*-*-%d-" + fntCat;
  FsDialog = "-misc-fixed-%s-%s-*-*-*-%d-" + fntCat;
  FsDialogInput = "-b&h-lucidatypewriter-%s-%s-*-*-*-%d-" + fntCat;
  FsZapfDingbats = "-adobe-new century schoolbook-%s-%s-*-*-*-%d-" +
fntCat;

  The code segement describes how Kaffe takes default fonts, where we
must deal with our fontname with proper locales.

  Thanks!

- Jim Huang <[EMAIL PROTECTED]>  

Attachment: kaffe-1.1.4-i18n.patch.gz
Description: Binary data

Reply via email to