emacs-emojify

fork of https://github.com/iqbalansari/emacs-emojify
Log | Files | Refs | LICENSE

commit 8e7d87328c6d1f0791c2a51ba2bd816a4338129a
parent 38ae28d95b58e9fb86a3495a2dda3e5de254c4fc
Author: Vincent Bernat <vincent@bernat.ch>
Date:   Wed, 19 Dec 2018 11:57:16 +0100

Do not scale created images

Starting from Emacs 26.1, images are automatically scaled to match the
frame DPI value (HiDPI support), unless `image-scaling-factor' is set
to a value different than auto. However, the height of the emoji
images is computed from the height of the current font. Therefore,
there is no need to scale them. Therefore, we enforce a scale of 1.

Diffstat:
Memojify.el | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/emojify.el b/emojify.el @@ -965,6 +965,7 @@ other different display constructs, for now this works." (face-background 'mode-line nil 'default)) (t (emojify--get-image-background beg end))) ;; no-op if imagemagick is not available + :scale 1 :height (cond ((bufferp target) (with-current-buffer target (emojify-default-font-height)))