[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: our quadratic triangle
From: |
James |
Subject: |
Re: our quadratic triangle |
Date: |
Sat, 13 Feb 2021 13:20:49 +0000 |
User-agent: |
Evolution 3.36.4-0ubuntu1 |
On Wed, 2021-01-27 at 14:31 +0100, Robin Bannister wrote:
> Hallo again
>
>
> In the meantime it has occurred to me that moving the gratuitous
> magstep
> scaling from baseline-skip over to thickness is perhaps not the
> answer.
>
> Since the triangle is applied mainly as a glyph it should not respond
> to
> overrides on those two properties. Consider squashing a vertical
> column
> by reducing its baseline-skip; a triangle somewhere in the column
> would
> be resized, unlike any of its font neighbors.
>
>
> So what about a markup that ignores all properties except the font
> size?
> It could offer some flexibilty via parameters, eg:
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> #(define-markup-command (delta-bhr layout props b-cents h-cents r-
> cents)
> (number? number? number?)
> #:properties ((font-size 0))
> (let* (
> (cent (/ (magstep font-size) 100))
> (base (* b-cents cent))
> (height (* h-cents cent))
> (radius (* r-cents cent)) ; of dot
> (thickness (* 2 radius))) ; of line
> (ly:make-stencil `(polygon
> ; '(0.0 ,radius ,base ,radius ,(* 0.5 base) ,(+ height radius))
> ;old
> (0.0 ,radius ,base ,radius ,(* 0.5 base) ,(+ height radius))
> ;new
> ,thickness #f)
> (interval-widen (cons 0 base) radius)
> (cons 0 base) )))
>
> delta = \markup \delta-bhr #120 #130 #10 % customised for "sans-
> serif"
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> Just my two cents. Or three in this case.
>
>
> Cheers,
> Robin
> _______________________________________________
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
Added as https://gitlab.com/lilypond/lilypond/-/issues/6096
James
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: our quadratic triangle,
James <=