Re: fonts for pango



Hi,

Alexander Larsson <alla lysator liu se> writes:

> >   lang = pango_context_get_lang (context);
> >   pango_font_get_metrics (pango_font, "fr", &metrics);
> >
> > Not only does it use a hardcoded language, it also leaks the result
> > from pango_context_get_lang().
> 
> Oh yes. That does look strange. I have a vague recollection that this was
> due to some pango unstabilities when passing NULL languages.

Yes, pango does not like it all if you pass a NULL language, although
the documentation explicitely allows it. I found the pango code too
confusing to come up with a proper fix. From my experience, using the
result from pango_context_get_lang() does work however.


Salut, Sven




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