Re: Pango::Layout::create ({ImageSurface Cairo Context})



On Wed, 2007-11-21 at 14:32 +0000, Dale Mellor wrote:
> I used Pango::init() in the end, but I had to include pangomm/init.h as
> well as the generic pangomm.h.
> 
> This isn't really very C++ is it?  Can't you put a singleton somewhere
> which makes sure pango is initialized the first time it is used?  Just a
> thought.

That would be nice. But it would be awkward to add the check in every
single class or method.

It couldn't be a simple static instance because the order of
initialization of static instances is not
defined/standardized/consistent/predictable.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]