The Call Tip popup window is cutting off the top of
Japanese characters. This makes many Japanese
characters unreadable.
I have made a fix for this and it looks good in both
Japanese and English.
2 Fixes in CallTip.cxx:
------------------------------------------------------------
CallTip::PaintContents
------------------------------------------------------------
line 138:
// To make a nice small call tip window, it is only
sized to fit most normal characters without accents
int ascent = surfaceWindow->Ascent(font) /*-
surfaceWindow->InternalLeading(font)*/;
*** Don't subtract the InternalLeading
------------------------------------------------------------
CallTip::CallTipStart
------------------------------------------------------------
line 253:
// Extra line for border and an empty line at top and
bottom
int height = lineHeight * numLines /*-
surfaceMeasure->InternalLeading(font)*/ + 2 + 2;
*** Don't subtract the InternalLeading
CallTip.cxx
CallTip_ENU.JPG
CallTip_JPN.JPG
CallTip_JPN_NoFix.JPG
Logged In: YES
user_id=12579
I think that this adds too much space for the main use case
which is for ASCII function parameters. A modification that
looked at the actual text would be better.
Logged In: YES
user_id=1092645
I attached a screen shot of the space used with the fix for
ASCII characters in CallTip_ENU.JPG. It looks good to me.
Logged In: YES
user_id=12579
There are 2 pixels of extra space at the top making it look
unbalanced.
Logged In: YES
user_id=1092645
Yeah, you are right. I'm sure there is a more robust fix,
but this fix is better than not having unreadable Japanese.
(at least for me) I will do my own build until this is
addressed in a public release.
Thanks for the great edit control.