emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs XIM question


From: Miles Bader
Subject: emacs XIM question
Date: 08 Jan 2003 18:25:00 +0900

I'm trying out the `kinput2' input server with emacs.  It generally
seems to work pretty well, but there's one glitch I'm wondering about:

kinput2 displays its not-yet-sent-to-the-application text with an
underline, and the text it displays is shifted upwards compared to
subsequent client display by one pixel, which is the same as the
thickness of the underline.

What I'm wondering is, is this a bug with kinput2 -- should it locating
its display window one pixel down to account for the underline
thickness -- or is this an off-by-one error in the coordinates emacs
sends to kinput2.

The coordinates emacs sends as the `spot location' to kinput2 are the
x,y coordinates of the top of the cursor + the default font's ascent
added to the y coordinate (this looks pretty bad if your inputing in a
location with non-default fonts, incidentally; perhaps there's a
better way to calculate the font baseline to send to the input manager).

Here's a simple picture:

   -- displayed by emacs -- -- kinput2 text --
                            #   #        # #
    #   #        # #        #   #   ###  # #  ###
    #   #   ###  # #  ###   #####  #   # # # #   #
    #####  #   # # # #   #  #   #  ####  # # #   #
    #   #  ####  # # #   #  #   #  #     # # #   #
    #   #  #     # # #   #  #   #   #### # #  ###
    #   #   #### # #  ###   #######################

after kinput2 sends the text to emacs, it's of course displayed properly.

Thanks,

-Miles
--
自らを空にして、心を開く時、道は開かれる




reply via email to

[Prev in Thread] Current Thread [Next in Thread]