Branch: Tag:

2005-07-28

2005-07-28 15:26:09 by Martin Nilsson <mani@lysator.liu.se>

GTK2

Rev: src/post_modules/GTK2/AUTHORS:1.1
Rev: src/post_modules/GTK2/build_pgtk.pike:1.1
Rev: src/post_modules/GTK2/gdkeventstrings.h:1.1
Rev: src/post_modules/GTK2/module.pmod.in:1.1
Rev: src/post_modules/GTK2/pgtk.h:1.1
Rev: src/post_modules/GTK2/source/common_draw.inc:1.1
Rev: src/post_modules/GTK2/source/constants.pre:1.1
Rev: src/post_modules/GTK2/source/encode_truecolor.c:1.1
Rev: src/post_modules/GTK2/source/gdkatom.pre:1.1
Rev: src/post_modules/GTK2/source/gdkbitmap.pre:1.1
Rev: src/post_modules/GTK2/source/gdkcolor.pre:1.1
Rev: src/post_modules/GTK2/source/gdkdisplay.pre:1.1
Rev: src/post_modules/GTK2/source/gdkdragcontext.pre:1.1
Rev: src/post_modules/GTK2/source/gdkdrawable.pre:1.1
Rev: src/post_modules/GTK2/source/gdkevent.pre:1.1
Rev: src/post_modules/GTK2/source/gdkgc.pre:1.1
Rev: src/post_modules/GTK2/source/gdkimage.pre:1.1
Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.1
Rev: src/post_modules/GTK2/source/gdkpixbufanimation.pre:1.1
Rev: src/post_modules/GTK2/source/gdkpixbufanimationiter.pre:1.1
Rev: src/post_modules/GTK2/source/gdkpixmap.pre:1.1
Rev: src/post_modules/GTK2/source/gdkrectangle.pre:1.1
Rev: src/post_modules/GTK2/source/gdkregion.pre:1.1
Rev: src/post_modules/GTK2/source/gdkwindow.pre:1.1
Rev: src/post_modules/GTK2/source/gladexml.pre:1.1
Rev: src/post_modules/GTK2/source/global.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeabout.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeapp.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeappbar.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeapplet.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomecalculator.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomecanvas.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomecanvasgroup.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomecanvasitem.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomecanvasline.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomecolorpicker.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedateedit.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedialog.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedock.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedockband.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedockitem.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedocklayout.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedruid.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedruidpage.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedruidpagefinish.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedruidpagestandard.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomedruidpagestart.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomehref.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeiconentry.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeiconselection.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomeless.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomemessagebox.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomenumberentry.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomepaperselector.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomepropertybox.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomescores.pre:1.1
Rev: src/post_modules/GTK2/source/gnome/gnomestatusdocklet.pre:1.1
Rev: src/post_modules/GTK2/source/gnomeapp.pre:1.1
Rev: src/post_modules/GTK2/source/gnomeappbar.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvas.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasbpath.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasclipgroup.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasellipse.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasgroup.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasitem.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasline.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvaspixbuf.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasre.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasrect.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasrichtext.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvasshape.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvastext.pre:1.1
Rev: src/post_modules/GTK2/source/gnomecanvaswidget.pre:1.1
Rev: src/post_modules/GTK2/source/gnomeclient.pre:1.1
Rev: src/post_modules/GTK2/source/gnomedateedit.pre:1.1
Rev: src/post_modules/GTK2/source/gnomedruid.pre:1.1
Rev: src/post_modules/GTK2/source/gnomedruidpage.pre:1.1
Rev: src/post_modules/GTK2/source/gnomedruidpageedge.pre:1.1
Rev: src/post_modules/GTK2/source/gnomedruidpagestandard.pre:1.1
Rev: src/post_modules/GTK2/source/gnomehref.pre:1.1
Rev: src/post_modules/GTK2/source/gnomeiconentry.pre:1.1
Rev: src/post_modules/GTK2/source/gnomeiconselection.pre:1.1
Rev: src/post_modules/GTK2/source/gobject.pre:1.1
Rev: src/post_modules/GTK2/source/gtkaboutdialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkaccelgroup.pre:1.1
Rev: src/post_modules/GTK2/source/gtkaccellabel.pre:1.1
Rev: src/post_modules/GTK2/source/gtkaction.pre:1.1
Rev: src/post_modules/GTK2/source/gtkactiongroup.pre:1.1
Rev: src/post_modules/GTK2/source/gtkadjustment.pre:1.1
Rev: src/post_modules/GTK2/source/gtkalignment.pre:1.1
Rev: src/post_modules/GTK2/source/gtkarrow.pre:1.1
Rev: src/post_modules/GTK2/source/gtkaspectframe.pre:1.1
Rev: src/post_modules/GTK2/source/gtkbin.pre:1.1
Rev: src/post_modules/GTK2/source/gtkbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkbuttonbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcalendar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcelleditable.inc:1.1
Rev: src/post_modules/GTK2/source/gtkcelllayout.inc:1.1
Rev: src/post_modules/GTK2/source/gtkcellrenderer.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrenderercombo.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrendererpixbuf.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrendererprogress.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrenderertext.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellrenderertoggle.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcellview.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcheckbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcheckmenuitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtkclipboard.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcolorbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcolorselection.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcolorselectiondialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcombo.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcombobox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcomboboxentry.pre:1.1
Rev: src/post_modules/GTK2/source/gtkcontainer.pre:1.1
Rev: src/post_modules/GTK2/source/gtkdata.pre:1.1
Rev: src/post_modules/GTK2/source/gtkdialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkdrawingarea.pre:1.1
Rev: src/post_modules/GTK2/source/gtkeditable.inc:1.1
Rev: src/post_modules/GTK2/source/gtkentry.pre:1.1
Rev: src/post_modules/GTK2/source/gtkentrycompletion.pre:1.1
Rev: src/post_modules/GTK2/source/gtkeventbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkexpander.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfilechooser.inc:1.1
Rev: src/post_modules/GTK2/source/gtkfilechooserbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfilechooserdialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfilechooserwidget.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfilefilter.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfileselection.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfixed.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfontbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfontselection.pre:1.1
Rev: src/post_modules/GTK2/source/gtkfontselectiondialog.pre:1.1
Rev: src/post_modules/GTK2/source/gtkframe.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhandlebox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhbuttonbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhpaned.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhscale.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhscrollbar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkhseparator.pre:1.1
Rev: src/post_modules/GTK2/source/gtkiconfactory.pre:1.1
Rev: src/post_modules/GTK2/source/gtkiconinfo.pre:1.1
Rev: src/post_modules/GTK2/source/gtkiconset.pre:1.1
Rev: src/post_modules/GTK2/source/gtkiconsize.pre:1.1
Rev: src/post_modules/GTK2/source/gtkiconsource.pre:1.1
Rev: src/post_modules/GTK2/source/gtkicontheme.pre:1.1
Rev: src/post_modules/GTK2/source/gtkiconview.pre:1.1
Rev: src/post_modules/GTK2/source/gtkimage.pre:1.1
Rev: src/post_modules/GTK2/source/gtkimagemenuitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtkinvisible.pre:1.1
Rev: src/post_modules/GTK2/source/gtkitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtklabel.pre:1.1
Rev: src/post_modules/GTK2/source/gtklayout.pre:1.1
Rev: src/post_modules/GTK2/source/gtkliststore.pre:1.1
Rev: src/post_modules/GTK2/source/gtkmenu.pre:1.1
Rev: src/post_modules/GTK2/source/gtkmenubar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkmenuitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtkmenushell.pre:1.1
Rev: src/post_modules/GTK2/source/gtkmenutoolbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkmisc.pre:1.1
Rev: src/post_modules/GTK2/source/gtknotebook.pre:1.1
Rev: src/post_modules/GTK2/source/gtkobject.pre:1.1
Rev: src/post_modules/GTK2/source/gtkpaned.pre:1.1
Rev: src/post_modules/GTK2/source/gtkplug.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprogress.pre:1.1
Rev: src/post_modules/GTK2/source/gtkprogressbar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkradioaction.pre:1.1
Rev: src/post_modules/GTK2/source/gtkradiobutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkradiomenuitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtkradiotoolbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrange.pre:1.1
Rev: src/post_modules/GTK2/source/gtkrcstyle.pre:1.1
Rev: src/post_modules/GTK2/source/gtkscale.pre:1.1
Rev: src/post_modules/GTK2/source/gtkscrollbar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkscrolledwindow.pre:1.1
Rev: src/post_modules/GTK2/source/gtkselectiondata.pre:1.1
Rev: src/post_modules/GTK2/source/gtkseparator.pre:1.1
Rev: src/post_modules/GTK2/source/gtkseparatormenuitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtkseparatortoolitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtksettings.pre:1.1
Rev: src/post_modules/GTK2/source/gtksizegroup.pre:1.1
Rev: src/post_modules/GTK2/source/gtksocket.pre:1.1
Rev: src/post_modules/GTK2/source/gtkspinbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtkstatusbar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkstyle.pre:1.1
Rev: src/post_modules/GTK2/source/gtktable.pre:1.1
Rev: src/post_modules/GTK2/source/gtktearoffmenuitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextattributes.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextbuffer.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextchildanchor.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextiter.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextmark.pre:1.1
Rev: src/post_modules/GTK2/source/gtktexttag.pre:1.1
Rev: src/post_modules/GTK2/source/gtktexttagtable.pre:1.1
Rev: src/post_modules/GTK2/source/gtktextview.pre:1.1
Rev: src/post_modules/GTK2/source/gtktoggleaction.pre:1.1
Rev: src/post_modules/GTK2/source/gtktogglebutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtktoggletoolbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtktoolbar.pre:1.1
Rev: src/post_modules/GTK2/source/gtktoolbutton.pre:1.1
Rev: src/post_modules/GTK2/source/gtktoolitem.pre:1.1
Rev: src/post_modules/GTK2/source/gtktooltips.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreedragdest.inc:1.1
Rev: src/post_modules/GTK2/source/gtktreedragsource.inc:1.1
Rev: src/post_modules/GTK2/source/gtktreeiter.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreemodel.inc:1.1
Rev: src/post_modules/GTK2/source/gtktreemodel.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreepath.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreerowreference.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreeselection.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreesortable.inc:1.1
Rev: src/post_modules/GTK2/source/gtktreestore.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreeview.pre:1.1
Rev: src/post_modules/GTK2/source/gtktreeviewcolumn.pre:1.1
Rev: src/post_modules/GTK2/source/gtkuimanager.pre:1.1
Rev: src/post_modules/GTK2/source/gtkvbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkvbuttonbox.pre:1.1
Rev: src/post_modules/GTK2/source/gtkviewport.pre:1.1
Rev: src/post_modules/GTK2/source/gtkvpaned.pre:1.1
Rev: src/post_modules/GTK2/source/gtkvscale.pre:1.1
Rev: src/post_modules/GTK2/source/gtkvscrollbar.pre:1.1
Rev: src/post_modules/GTK2/source/gtkvseparator.pre:1.1
Rev: src/post_modules/GTK2/source/gtkwidget.pre:1.1
Rev: src/post_modules/GTK2/source/gtkwindow.pre:1.1
Rev: src/post_modules/GTK2/source/gtkwindowgroup.pre:1.1
Rev: src/post_modules/GTK2/source/pangoattrlist.pre:1.1
Rev: src/post_modules/GTK2/source/pangocontext.pre:1.1
Rev: src/post_modules/GTK2/source/pangofontdescription.pre:1.1
Rev: src/post_modules/GTK2/source/pangolayout.pre:1.1
Rev: src/post_modules/GTK2/source/pangolayoutiter.pre:1.1
Rev: src/post_modules/GTK2/source/pangolayoutline.pre:1.1
Rev: src/post_modules/GTK2/source/pangotabarray.pre:1.1
Rev: src/post_modules/GTK2/source/support.c:1.1

1: + class Pango.FontDescription;    -  + //! Pango Font Description. +  + void create(?string desc) + //! Create a new font description. If desc is present, creates a new font + //! description from a string representation in the form + //! "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma + //! separated list of families optionally terminated by a comma, STYLE-OPTIONS + //! is a whitespace separated list of words where each word describes one of + //! style, variant, weight, or stretch, and size is a decimal number (size in + //! points). Any one of the options may be absent. If FAMILY-LIST is absent, + //! then the family name will be blank. If STYLE-OPTIONS is missing, then all + //! style options will be set to the default values. If SIZE is missing, the + //! size in the resulting font description will be set to 0. + { +  pgtk_verify_not_inited(); +  pgtk_verify_setup(); +  if (args) { +  char *str; +  get_all_args("create",args,"%s",&str); +  if (str) +  THIS->obj=(void *)pango_font_description_from_string(str); +  else +  THIS->obj=(void *)pango_font_description_new(); +  } else +  THIS->obj=(void *)pango_font_description_new(); +  pgtk__init_this_object(); + } +  + Pango.FontDescription copy() + //! Copy a font description. + { +  pgtk_verify_inited(); +  { +  PangoFontDescription *pfd=pango_font_description_copy( +  (PangoFontDescription *)THIS->obj); +  my_pop_n_elems(args); +  push_gobjectclass(pfd,ppango_font_description_program); +  } + } +  + int equal(Pango.FontDescription desc) + //! Compares two font descriptions for equality. + { +  pgtk_verify_inited(); +  { +  struct object *o1; +  get_all_args("equal",args,"%o",&o1); +  my_pop_n_elems(args); +  push_int(pango_font_description_equal((PangoFontDescription *)THIS->obj, +  (PangoFontDescription *)get_gobject(o1))); +  } + } +  + void destroy() + //! Destructor. + { +  if (THIS->obj) +  pango_font_description_free((PangoFontDescription *)THIS->obj); +  THIS->obj=0; +  push_int(0); + } +  + void set_family(string family) + //! Sets the family name. The family name represents a family of related + //! fonts styles, and will resolve to a particular PangoFontFamily. + { +  pgtk_verify_inited(); +  { +  char *str; +  get_all_args("set_family",args,"%s",&str); +  pango_font_description_set_family((PangoFontDescription *)THIS->obj, +  str); +  } +  RETURN_THIS(); + } +  + string get_family() + //! Gets the family name. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  PGTK_PUSH_GCHAR( +  pango_font_description_get_family((PangoFontDescription *)THIS->obj)); + } +  + void set_style(int style) + //! Sets the style. This describes whether the font is slanted and the manner + //! in which is is slanted. One of CONST(PANGO_STYLE_). Most fonts will + //! either have an italic style or an oblique style, but not both, and font + //! matching in Pango will match italic specifications with oblique fonts and + //! vice-versa if an exact match is not found. + { +  pgtk_verify_inited(); +  { +  int style; +  get_all_args("set_style",args,"%i",&style); +  pango_font_description_set_style((PangoFontDescription *)THIS->obj,style); +  } +  RETURN_THIS(); + } +  + int get_style() + //! Gets the style. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  push_int(pango_font_description_get_style((PangoFontDescription *)THIS->obj)); + } +  + void set_variant(int variant) + //! Sets the variant. One of CONST(PANGO_VARIANT_). + { +  pgtk_verify_inited(); +  { +  int var; +  get_all_args("set_variant",args,"%i",&var); +  pango_font_description_set_variant((PangoFontDescription *)THIS->obj,var); +  } +  RETURN_THIS(); + } +  + int get_variant() + //! Gets the variant. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  push_int(pango_font_description_get_variant( +  (PangoFontDescription *)THIS->obj)); + } +  + void set_weight(int weight) + //! Sets the weight. The weight specifies how bold or light the font should + //! be. In addition to the values of CONST(PANGO_WEIGHT_), other intermediate + //! numeric values are possible. + { +  pgtk_verify_inited(); +  { +  int we; +  get_all_args("set_weight",args,"%i",&we); +  pango_font_description_set_weight((PangoFontDescription *)THIS->obj,we); +  } +  RETURN_THIS(); + } +  + int get_weight() + //! Gets the weight. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  push_int(pango_font_description_get_weight( +  (PangoFontDescription *)THIS->obj)); + } +  + void set_stretch(int stretch) + //! Sets the stretch. This specifies how narrow or wide the font should be. + //! One of CONST(PANGO_STRETCH_). + { +  pgtk_verify_inited(); +  { +  int st; +  get_all_args("set_stretch",args,"%i",&st); +  pango_font_description_set_stretch((PangoFontDescription *)THIS->obj,st); +  } +  RETURN_THIS(); + } +  + int get_stretch() + //! Get the stretch. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  push_int(pango_font_description_get_stretch( +  (PangoFontDescription *)THIS->obj)); + } +  + void set_size(int size) + //! Sets the size in fractional points. This is the size of the font in + //! points, scaled by PANGO_SCALE. (That is, a size value of 10*PANGO_SCALE) + //! is a 10 point font. The conversion factor between points and device units + //! depends on system configuration and the output device. For screen display, + //! a logical DPI of 96 is common, in which case a 10 point font corresponds + //! to a 1o*(96.72) = 13.3 pixel font. Use set_absolute_size() if you need + //! a particular size in device units. + { +  pgtk_verify_inited(); +  { +  int size; +  get_all_args("set_size",args,"%i",&size); +  pango_font_description_set_size((PangoFontDescription *)THIS->obj,size); +  } +  RETURN_THIS(); + } +  + int get_size() + //! Gets the size. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  push_int(pango_font_description_get_size( +  (PangoFontDescription *)THIS->obj)); + } +  + /* + void set_absolute_size(float size) + //! Sets the size in pango units. There are GTK2.PANGO_SCALE pango units in + //! one device unit. For an output backend where a device unit is a pixel, + //! a size value of 10*GTK2.PANGO_SCALE gives a 10 pixel font. + { +  pgtk_verify_inited(); +  { +  double size; +  get_all_args("set_absolute_size",args,"%i",&size); +  pango_font_description_set_absolute_size((PangoFontDescription *)THIS->obj, +  size); +  } +  RETURN_THIS(); + } +  + int get_size_is_absolute() + //! Determines whether the size of the font is in points or device units. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  push_int(pango_font_description_get_size_is_absolute( +  (PangoFontDescription *)THIS->obj)); + } + */ +  + void merge(Pango.FontDescription desc, int replace) + //! Merges the fields that are set int desc to the fields in this description. + //! If replace is false, only fields in this description that are not already + //! set are affected. If true, then fields that are already set will be + //! replaced as well. + { +  pgtk_verify_inited(); +  { +  int rep; +  struct object *o1; +  get_all_args("merge",args,"%o%i",&o1,&rep); +  pango_font_description_merge((PangoFontDescription *)THIS->obj, +  (PangoFontDescription *)get_gobject(o1),rep); +  } +  RETURN_THIS(); + } +  + int better_match(Pango.FontDescription new, ?Pango.FontDescription old) + //! Determines if the style attributes of new are a closer match than old, or + //! if old is omitted, determines if new is a match at all. Approximate + //! matching is done for weight and style; other attributes must match exactly. + { +  pgtk_verify_inited(); +  { +  struct object *o1,*o2=NULL; +  int res; +  if (args==1) +  get_all_args("better_match",args,"%o",&o1); +  else +  get_all_args("better_match",args,"%o%o",&o1,&o2); +  my_pop_n_elems(args); +  res=pango_font_description_better_match((PangoFontDescription *)THIS->obj, +  (PangoFontDescription *)get_gobject(o2), +  (PangoFontDescription *)get_gobject(o1)); +  push_int(res); +  } + } +  + string to_string() + //! Creates a string representation. The family list in the string description + //! will only have a terminating comm if the last word of the list is a valid + //! style option. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  { +  char *str=pango_font_description_to_string( +  (PangoFontDescription *)THIS->obj); +  PGTK_PUSH_GCHAR(str); +  } + } +  + string to_filename() + //! Creates a filename representation. The filename is identical to the + //! result from calling to_string(), but with underscores instead of characters + //! that are untypical in filenames, and in lower case only. + { +  pgtk_verify_inited(); +  my_pop_n_elems(args); +  { +  char *str=pango_font_description_to_filename( +  (PangoFontDescription *)THIS->obj); +  PGTK_PUSH_GCHAR(str); +  } + }   Newline at end of file added.