Pango/Cairo circular problem
- From: "Andrei Vasiliu" <andreivasiliu users sourceforge net>
- To: gtk-i18n-list gnome org
- Subject: Pango/Cairo circular problem
- Date: Sat, 27 Sep 2008 04:09:34 +0300
Hello all,
I've run into a sort of brick wall here, and I can't go on with my project until I pass it. I'm using GTK, Cairo, and Pango... I need to "cache" some GUI elements, that will be displayed numerous times and at various places on a big widget. So I'm using Cairo memory surfaces for this.
The problem: The size of these memory surfaces depend on their contents, so I need to determine the size before creating one. The contents include Pango layouts. In order to create a Pango layout for Cairo and get its size, I need a Cairo context. In order to create a Cairo context, I need the size of several Pango layouts.
Anyone ever had this problem before?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]