Hi Philipp,

On 10/18/07, Philipp Lohmann <[EMAIL PROTECTED]> wrote:
> One small addition:
>
> -(NSRect)firstRectForCharacterRange:(NSRange)theRange
>
> simply adding "4" to the character cell height, is this good enough ?
> Should this perhaps depend on the font height ?

Ah, no.   The magic number is added because I think it looks nicer to
have some spaces between input text itself (with underline) and its
candidate window (for Chinese/Japanese).  Since the font height is
already considered with rect.size.heigt, we can get a consistent space
between input text and candidate window with any font size.

Cheers,
-- 
Etsushi Kato
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to