[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SOLVED] Re: [CLOSED] text-property displayed image has a center-line wh
From: |
Christopher M. Miles |
Subject: |
[SOLVED] Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute |
Date: |
Wed, 19 Oct 2022 15:33:41 +0800 |
User-agent: |
mu4e 1.8.10; emacs 29.0.50 |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Ihor Radchenko <yantar92@gmail.com>
>> Date: Sun, 2 Oct 2022 18:57:56 +0800
>> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org, emacs-orgmode@gnu.org
>>
>> 1. find an image file in your system
>> 2. emacs -Q
>> 3. M-: (erase-buffer)
>> 4. Insert "askdjaklsdj lasasd"
>> 5. M-: (require 'org)
>> 6. M-x font-lock-mode
>> 7. M-: (put-text-property (point-min) (point-max) 'face 'org-link)
>> 8. M-: (put-text-property (point-min) (point-max) 'display (create-image
>> "/path/to/image" nil nil :ascent 'center :max-height 512))
>
> Thanks.
>
> This is because of the ":ascent 'center" part, isn't it?
>
> What would you want Emacs to do instead in this case?
I checked out the docstring of `create-image' have not found related
info about `:ascent'. Today (which is after some days) I review this
problem and searched the `:ascent' in emacs info manual, found this
property explanation. I set it to `:ascent 100` solved the problem. Now
the baseline is at the bottom of image.
Thanks a lot for pointing it out which fixed a big issue of my extension code.
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without
misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
signature.asc
Description: PGP signature
- Re: Fwd: [QUESTION] why there is a horizontal line in middle of text-property displayed image?, (continued)
- 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/02
- 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 <=