|
From: | Mike Solomon |
Subject: | Re: Accidental in brackets |
Date: | Mon, 5 Dec 2016 16:52:01 +0200 |
Hey! Total hack, but if you check out scm/stencil.scm, you’ll see how parentheses are made… (define-public (parenthesize-stencil stencil half-thickness width angularity padding) "Add parentheses around @var{stencil}, returning a new stencil." (let* ((y-extent (ly:stencil-extent stencil Y)) (lp (make-parenthesis-stencil y-extent half-thickness (- width) angularity)) (rp (make-parenthesis-stencil y-extent half-thickness width angularity))) (set! stencil (ly:stencil-combine-at-edge stencil X LEFT lp padding)) (set! stencil (ly:stencil-combine-at-edge stencil X RIGHT rp padding)) stencil)) So it looks like you can substitute in make-connected-path-stencil for make-parenthesis-stencil, using sensible parameters for the connected path based on the y extent and the width. ~Mike On 5 December 2016 at 16.46.16, Urs Liska (address@hidden) wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |