X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstencil-scheme.cc;h=da9f0a8214afcdf7d9fc74d8c9691542ad74a7ac;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=5c43189e0bc713305d51245cee254b97021300d0;hpb=7738c6fa2759373c05e34b003a7ed521e9382f37;p=lilypond.git diff --git a/lily/stencil-scheme.cc b/lily/stencil-scheme.cc index 5c43189e0b..da9f0a8214 100644 --- a/lily/stencil-scheme.cc +++ b/lily/stencil-scheme.cc @@ -555,3 +555,14 @@ LY_DEFINE (ly_stencil_scale, "ly:stencil-scale", q->scale (scm_to_double (x), scm_to_double (y)); return new_s; } + +LY_DEFINE (ly_stencil_outline, "ly:stencil-outline", + 2, 0, 0, (SCM stil, SCM outline), + "Return a stencil with the stencil expression (inking)" + " of stencil @var{stil} but with outline and dimensions" + " from stencil @var{outline}.") +{ + Stencil s = *LY_ASSERT_SMOB (Stencil, stil, 1); + Stencil o = *LY_ASSERT_SMOB (Stencil, outline, 2); + return s.with_outline (o).smobbed_copy (); +}