[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Obtaining the dimensions of a glyph (or a stencil) within c++
From: |
Patrick McCarty |
Subject: |
Re: Obtaining the dimensions of a glyph (or a stencil) within c++ |
Date: |
Mon, 15 Feb 2010 12:48:05 -0800 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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