unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Display question
@ 2011-06-08  5:55 Michael Welsh Duggan
  2011-06-08  7:51 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Welsh Duggan @ 2011-06-08  5:55 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

Try evaluating the following elisp in a graphical session:

(defface special-char
  '((t :box t))
  "Face for special chars")

(defconst RLO #("\u200bRLO\u200b" 1 4 (face special-char)))

(defun set-disp-entry (table idx str)
  (let* ((len (length str))
         (result (make-vector len nil)))
    (dotimes (c len)
      (let ((face (get-text-property c 'face str))
            (char (aref str c)))
        (aset result c (make-glyph-code char face))))
    (set-char-table-range table idx result)))

(set-disp-entry standard-display-table #x202e RLO)

(ucs-insert #x202e)

Afterward, I get a character that looks like a double-boxed RLO.  Image
included:


[-- Attachment #2: boxed.png --]
[-- Type: image/png, Size: 36577 bytes --]

[-- Attachment #3: Type: text/plain, Size: 232 bytes --]


Is this expected?  If I just do (insert RLO RLO RLO) a few times in a
non-font-locked buffer, I get a box around RLO, with a tiny space
between the boxes, and not the double box seen here.

-- 
Michael Welsh Duggan
(md5i@md5i.com)

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

end of thread, other threads:[~2011-06-09 19:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08  5:55 Display question Michael Welsh Duggan
2011-06-08  7:51 ` Eli Zaretskii
2011-06-08 13:13   ` Michael Welsh Duggan
2011-06-08 16:16     ` Eli Zaretskii
2011-06-09 19:10       ` Michael Welsh Duggan

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).