Re: The future of GdkFont declarations
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gnome org
- Subject: Re: The future of GdkFont declarations
- Date: 01 May 2001 13:35:23 -0400
Havoc Pennington <hp redhat com> writes:
> Jeff Franks <jcf tpg com au> writes:
> >
> > I was just wondering, since GdkFont is to be deprecated what will happen
> > to all the GdkFont declarations that appear in other files, such as
> > gtkfontsel.h, gtkstyle.h, gdkdrawable.h, gdkgc.h and gdktypes.h. Will
> > these be changed to PangoFont or will GdkFont become a typedef for
> > PangoFont.
> >
>
> GdkFont remains, so that porting won't be nightmarish, but any code
> that uses it will not internationalize properly. There may be a couple
> legitimate uses for it, maybe for terminal programs or something.
>
> GtkFontSelection doesn't appear to have a parallel Pango API - a bug
> report on that would be good. Seems busted. (Or maybe we'll just
> remove the GdkFont from fontsel, I don't know the plan here.)
I would expect people to use gtk_font_selection_get_font_name() which
returns a font description in Pango format now. I suppose we could
have a function to return a PangoFontDescription, but memory
management would be a little tricky.
Regards,
Oen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]