lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: box-stencil (was: Drawing boxes around grobs)


From: Torsten Hämmerle
Subject: Re: box-stencil (was: Drawing boxes around grobs)
Date: Sun, 23 Feb 2020 04:54:33 -0700 (MST)

Paolo Prete-3 wrote
> I just checked that this unwanted behavior happens in the
> default make-stencil-boxer function too.

Ciao Paolo,

Unfortunately, this is a common problem with (mostly) italic fonts:
When looking at the dynamic f in FontForge, you'll see that the glyph is
sticking out of its left and right boundaries.

<http://lilypond.1069038.n5.nabble.com/file/t3887/italic-box-overshoot.png> 

This exaclty matches the physical design of traditional lead type:

<http://lilypond.1069038.n5.nabble.com/file/t3887/310.jpg> 


A *pragmatic solution* to your problem would be to re-define the dynamics
definitions concerned, simply adding a wee bit of space to the left and to
the right, as in

  mf = #(make-dynamic-script (markup #:line (#:hspace 0.2 "mf" #:hspace
0.5)))

This will make your output look like

<http://lilypond.1069038.n5.nabble.com/file/t3887/italic-box-overshoot-dynamics.png>
 

HTH,
Torsten

italic-box-overshoot.png
<http://lilypond.1069038.n5.nabble.com/file/t3887/italic-box-overshoot.png>  
italic-box-overshoot-dynamics.png
<http://lilypond.1069038.n5.nabble.com/file/t3887/italic-box-overshoot-dynamics.png>
  



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]