Patrick McCarty schrieb:
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 ();
Yes, it works, thank you!

Marc

-Patrick




_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to