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