Re: width of string rendered by pango font?
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: David Morse <dcmorse gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: width of string rendered by pango font?
- Date: Tue, 12 Jul 2005 11:27:56 +0200
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]