Re: Computing cairo surface dimensions in advance



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]