[kaffe] i18n patches for X AWT backend
jserv at linux2.cc.ntu.edu.tw
jserv at linux2.cc.ntu.edu.tw
Wed Feb 25 09:46:02 PST 2004
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 <jimchyun at ccns.ncku.edu.tw>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaffe-1.1.4-i18n.patch.gz
Type: application/octet-stream
Size: 4968 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20040225/b9ed1cf4/attachment-0002.obj
More information about the kaffe
mailing list