branch: externals/svg-lib commit 567e1b6da0f9c05b8fc4340c9a7c28e288bd3d05 Author: Nicolas P. Rougier <nicolas.roug...@inria.fr> Commit: Nicolas P. Rougier <nicolas.roug...@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))