emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/svg-lib 567e1b6da0 1/2: Take line spacing into account


From: ELPA Syncer
Subject: [elpa] externals/svg-lib 567e1b6da0 1/2: Take line spacing into account for tag height computation.
Date: Sun, 26 Dec 2021 14:57:35 -0500 (EST)

branch: externals/svg-lib
commit 567e1b6da0f9c05b8fc4340c9a7c28e288bd3d05
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>

    Take line spacing into account for tag height computation.
---
 svg-lib.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/svg-lib.el b/svg-lib.el
index 17ab8b474f..3be68ad238 100644
--- a/svg-lib.el
+++ b/svg-lib.el
@@ -242,6 +242,9 @@ and style elements ARGS."
 
          (txt-char-width  (window-font-width))
          (txt-char-height (window-font-height))
+         (txt-char-height (if line-spacing
+                              (+ txt-char-height line-spacing)
+                          txt-char-height))
          (font-info       (font-info (format "%s-%d" font-family font-size)))
          (ascent          (aref font-info 8))
          (tag-char-width  (aref font-info 11))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]