Re: Difference in font layout heights?



On Mon, 2003-02-24 at 13:53, Sven Neumann wrote:
> Hi,
> 
> Owen Taylor <otaylor redhat com> writes:
> 
> > Are you setting language tags on your text? (See
> > gtk_get_default_language()). If you don't set a language tag, GTK+ is
> > going to leave enough spacing for "any" language in many cases.
> 
> the documentation to gtk_get_default_language() seems to be wrong. It
> states that it would return an ISO language code and that the result
> should be freed. Truth is that it returns a PangoLanuage (and noone is
> supposed to know that this is just an ISO language code at the moment)
> and a PangoLanguage should definitely not be freed.

File a bug or just go ahead and fix it :-).

[
  The fact that PangoLanguage has the structure of an ISO
  code is certainly public right now ... the only way to create
  a PangoLanguage is to call pango_language_to_string() 
]

> > There are also some issues with pango_ft2_render_layout(); see:
> > 
> >  http://bugzilla.gnome.org/show_bug.cgi?id=105292
> > 
> > But unless you are setting the spacing attribute, shouldn't make a 
> > difference.
> 
> you didn't yet comment on my patch for this problem. Since GIMP-1.3.12
> uses the spacing attribute, I expect to get bug-reports about it soon.

I'll get to it before I do another Pango release. I'm not sure if that
is the answer you were wanting to hear ;-(, It also invites 
another question, the answer to which is "I don't know".

Regards,
                                                      Owen





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