X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdefine-markup-commands.scm;h=3e7b2f2308f2e61d35282743328ded3e69d90a81;hb=HEAD;hp=91b9391fe6600325df53b1c5c72df21f28e6f508;hpb=94d7992202bbba50fc0542b629f33a88ae885bca;p=lilypond.git diff --git a/scm/define-markup-commands.scm b/scm/define-markup-commands.scm index 91b9391fe6..3e7b2f2308 100644 --- a/scm/define-markup-commands.scm +++ b/scm/define-markup-commands.scm @@ -1595,16 +1595,11 @@ equivalent to @code{\"fi\"}. (cons arg result-list)))) '() arg-list)) - - (interpret-markup layout - (prepend-alist-chain 'word-space 0 props) - (make-line-markup - (make-override-lines-markup-list - (cons 'word-space - (chain-assoc-get 'word-space props)) - (if (markup-command-list? args) - args - (concat-string-args args)))))) + (stack-stencil-line 0 + (interpret-markup-list layout props + (if (markup-command-list? args) + args + (concat-string-args args))))) (define (wordwrap-stencils stencils justify base-space line-width text-dir) @@ -2642,6 +2637,7 @@ may be any property supported by @rinternals{font-interface}, (define-markup-command (abs-fontsize layout props size arg) (number? markup?) + #:properties ((word-space 0.6) (baseline-skip 3)) #:category font "Use @var{size} as the absolute font size (in points) to display @var{arg}. Adjusts @code{baseline-skip} and @code{word-space} accordingly. @@ -2657,14 +2653,12 @@ Adjusts @code{baseline-skip} and @code{word-space} accordingly. @end lilypond" (let* ((ref-size (ly:output-def-lookup layout 'text-font-size 12)) (text-props (list (ly:output-def-lookup layout 'text-font-defaults))) - (ref-word-space (chain-assoc-get 'word-space text-props 0.6)) - (ref-baseline (chain-assoc-get 'baseline-skip text-props 3)) (magnification (/ size ref-size))) (interpret-markup layout (cons - `((baseline-skip . ,(* magnification ref-baseline)) - (word-space . ,(* magnification ref-word-space)) + `((baseline-skip . ,(* magnification baseline-skip)) + (word-space . ,(* magnification word-space)) (font-size . ,(magnification->font-size magnification))) props) arg))) @@ -4457,6 +4451,7 @@ Draw vertical brackets around @var{arg}. (padding) (size 1) (thickness 1) + (line-thickness 0.1) (width 0.25)) " @cindex placing parentheses around text @@ -4487,12 +4482,11 @@ a column containing several lines of text. (let* ((m (interpret-markup layout props arg)) (scaled-width (* size width)) (scaled-thickness - (* (chain-assoc-get 'line-thickness props 0.1) - thickness)) + (* line-thickness thickness)) (half-thickness (min (* size 0.5 scaled-thickness) (* (/ 4 3.0) scaled-width))) - (padding (chain-assoc-get 'padding props half-thickness))) + (padding (or padding half-thickness))) (parenthesize-stencil m half-thickness scaled-width angularity padding)))