[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-pro
From: |
Ihor Radchenko |
Subject: |
Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image? |
Date: |
Sun, 02 Oct 2022 12:17:39 +0800 |
"Christopher M. Miles" <numbchild@gmail.com> writes:
> I replaced step 5 with step 6 by extracting the logic code of
> org-link-beautify, but I found it does not have center-line. That's
> really weird.
> ...
> (put-text-property
> start end
> 'display (create-image "~/Downloads/.thumbnails/3veEPJrQrV1EtpH9.png"
> nil nil :ascent 'center :max-height 512))
> (make-local-variable 'image-map)
> (define-key image-map (kbd "<mouse-1>") 'org-open-at-point))
> #+end_src
On my side, the put-text-property does have center-line.
But only when buffer is in Org mode.
Yet, it is not Org's fault.
The reason you are seeing the horizontal line is org-link face.
org-link has underline. And the "center" line you are seeing is actually
underline coming from the face. I'd say it is emacs bug.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?, Ihor Radchenko, 2022/10/01
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?, Christopher M. Miles, 2022/10/01
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?, Christopher M. Miles, 2022/10/01
- Message not available
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?, Ihor Radchenko, 2022/10/01
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?, Christopher M. Miles, 2022/10/01
- Message not available
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?,
Ihor Radchenko <=
- Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute, Christopher M. Miles, 2022/10/02
- Re: Fwd: [BUG] text-property displayed image has a center-line when the text face has underline attribute, Eli Zaretskii, 2022/10/02
- [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Christopher M. Miles, 2022/10/02
- Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Eli Zaretskii, 2022/10/02
- Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Christopher M. Miles, 2022/10/02
- Message not available
- Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Ihor Radchenko, 2022/10/02
- Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Eli Zaretskii, 2022/10/02
- Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Ihor Radchenko, 2022/10/02
- [SOLVED] Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute, Christopher M. Miles, 2022/10/19