all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs XIM question
@ 2003-01-08  9:25 Miles Bader
  2003-01-15 12:38 ` Kenichi Handa
  0 siblings, 1 reply; 3+ messages in thread
From: Miles Bader @ 2003-01-08  9:25 UTC (permalink / raw)


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
--
自らを空にして、心を開く時、道は開かれる

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-23  4:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-08  9:25 emacs XIM question Miles Bader
2003-01-15 12:38 ` Kenichi Handa
2003-01-23  4:35   ` Miles Bader

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.