Re: Computing cairo surface dimensions in advance
- From: Behdad Esfahbod <behdad behdad org>
- To: Daniel Elstner <daniel kitta googlemail com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Computing cairo surface dimensions in advance
- Date: Tue, 12 Dec 2006 15:07:32 -0500
On Mon, 2006-12-11 at 17:35 -0500, Daniel Elstner wrote:
>
> 'Tis ain't pretty. Is the code above actually correct? Is there a
> better to do this kind of thing?
What you say is basically correct. Currently you first need to create a
tiny surface to measure a PangoLayout before you create your final
surface. Any suggestions how to improve this?
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]