branch: externals/svg-lib commit e0423a2bb9f5132f29c0fbb72f9fb80e3334ce4a Merge: f0b2136 6876d54 Author: Nicolas P. Rougier <nicolas.roug...@inria.fr> Commit: GitHub <nore...@github.com>
Merge pull request #8 from HyunggyuJang/fix-font-info-query-format Fix `font-info` query format. --- svg-lib.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/svg-lib.el b/svg-lib.el index efaf7c5..30f3d65 100644 --- a/svg-lib.el +++ b/svg-lib.el @@ -222,7 +222,7 @@ and style elements ARGS." (txt-char-width (window-font-width)) (txt-char-height (window-font-height)) - (font-info (font-info (format "%s:%d" font-family font-size))) + (font-info (font-info (format "%s-%d" font-family font-size))) (ascent (aref font-info 8)) (tag-char-width (aref font-info 11)) (tag-char-height (aref font-info 3)) @@ -276,7 +276,7 @@ and style elements ARGS." (txt-char-width (window-font-width)) (txt-char-height (window-font-height)) - (font-info (font-info (format "%s:%d" font-family font-size))) + (font-info (font-info (format "%s-%d" font-family font-size))) (ascent (aref font-info 8)) (tag-char-width (aref font-info 11)) (tag-char-height (aref font-info 3)) @@ -347,7 +347,7 @@ and style elements ARGS." (txt-char-width (window-font-width)) (txt-char-height (window-font-height)) - (font-info (font-info (format "%s:%d" font-family font-size))) + (font-info (font-info (format "%s-%d" font-family font-size))) (ascent (aref font-info 8)) (tag-char-width (aref font-info 11)) (tag-char-height (aref font-info 3)) @@ -510,7 +510,7 @@ and style elements ARGS." (box-width (* width txt-char-width)) (box-height (* height txt-char-height)) - (font-info (font-info (format "%s:%d" font-family font-size))) + (font-info (font-info (format "%s-%d" font-family font-size))) (ascent (aref font-info 8)) (tag-char-width (aref font-info 11)) (tag-char-height (aref font-info 3))