Eli Zaretskii writes: >> From: Ihor Radchenko >> Date: Sun, 2 Oct 2022 18:57:56 +0800 >> Cc: Eli Zaretskii , 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