Hi Marc,
On 2010-02-15, Marc Hohl wrote:
> I have
>
> Stencil segno = Font_interface::get_default_font (me)->find_by_name
> ("scripts.varsegno");
>
> How can I get the width of the glyph? Or alternatively, can I get
> the width of the stencil defined as above?
Untested, but something like this should work:
Stencil segno =
Font_interface::get_default_font (me)->find_by_name ("scripts.varsegno");
Real width = segno.extent (X_AXIS).length ();
-Patrick
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel