Re: width of string rendered by pango font?



On Mon, Jul 11, 2005 at 11:20:37PM -0400, David Morse wrote:
How does one figure out the width of a certain string in a certain pango font?

Create a PangoLayout, set the font and text, and then you
can use pango_layout_get_extents() or
pango_layout_get_pixel_extents() to get the dimensions.

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



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