Re: fonts for pango
- From: Sven Neumann <sven gimp org>
- To: Alexander Larsson <alla lysator liu se>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: fonts for pango
- Date: 19 Mar 2001 14:23:17 +0100
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]