|
From: | Marc Hohl |
Subject: | Re: Obtaining the dimensions of a glyph (or a stencil) within c++ |
Date: | Tue, 16 Feb 2010 20:26:02 +0100 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090817) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |