Re: how can I find out the current font size
- From: "Gian Mario Tagliaretti" <gianmt gnome org>
- To: "ying lcs" <yinglcs gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how can I find out the current font size
- Date: Sun, 13 Jan 2008 16:09:04 +0100
On Jan 11, 2008 7:00 PM, ying lcs <yinglcs gmail com> wrote:
Hi Ying,
When I use this function to paint text, can you please tell me how can
I find out the font size of the text.
void gdk_draw_layout (GdkDrawable *drawable,
GdkGC *gc,
gint x,
gint y,
PangoLayout *layout);
get the attrlist from the layout and look for the font size attribute,
not a pango expert here so there might be a better way though.
cheers
--
Gian Mario Tagliaretti
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]