Hi, everybody!
Description of the problem: while typing non-latin characters in, for example,
text field, asterisks appears. Here is the patch that fixes that problem.
Another problem that i can't fix yet is appearing extra spaces after the typed
non-latin text. I tried find out where it is and suppose that
problem is in getting character(glyph) width. For example, if i type "q",
width of the glyph defines as 6 point. When i type cyrillic "Ce", width of
the glyph calculated as 12 points, while actual width of the glyph is 6
points.
In fact, it leads to calculating wrong insertion point position (and looks
like "extra spaces" after the typed text). Number of these "extra spaces" is
the sum of widths of non-latin chars in typed text...
Can anyone help me to fix this misbehaviour?
--
Serg Stoyan
--- /home/stoyan/new/GNUstep/CVS/back/Source/x11/XIMInputServer.m Thu Mar 28
01:45:23 2002
+++ /home/stoyan/new/GNUstep/back/Source/x11/XIMInputServer.m Thu Apr 11 21:45:49
+2002
@@ -92,7 +92,7 @@
#endif
else
{
- encoding = NSISOLatin1StringEncoding;
+ encoding = [NSString defaultCStringEncoding];
}
#if USE_XIM