lilypond-devel
[Top][All Lists]
Advanced

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

Obtaining the dimensions of a glyph (or a stencil) within c++


From: Marc Hohl
Subject: Obtaining the dimensions of a glyph (or a stencil) within c++
Date: Mon, 15 Feb 2010 17:48:09 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hello,

I am still working on a proper way to include the varsegno sign (issue #659).
Displaying the varsegno itself with various combinations (repeat signs etc.)
works already, but for span-bar.cc, I'll have to remove the varsegno sign itself but the spacing should be the same, so basically, I need to know the width of the sign.
I could hardcode the value, but this seems to be rather crude.

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?

Thanks in advance

Marc




reply via email to

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