<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="class-gdkfont">
  <refmeta>
    <refentrytitle>gtk.gdk.Font</refentrytitle>
    <manvolnum>3</manvolnum>
    <refmiscinfo>PyGTK Docs</refmiscinfo>
  </refmeta>

  <refnamediv>
    <refname>gtk.gdk.Font</refname><refpurpose></refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

<classsynopsis language="python">
  <ooclass><classname>gtk.gdk.Font</classname></ooclass>
  <ooclass><classname>gobject.GBoxed</classname></ooclass>
<constructorsynopsis language="python">
    <methodname>__init__</methodname>
    <methodparam><parameter>font_name</parameter></methodparam>
  </constructorsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--id">id</link></methodname>
    <methodparam></methodparam>  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--string-width">string_width</link></methodname>
    <methodparam><parameter>string</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--width">width</link></methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter><initializer>-1</initializer></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--text-width-wc">text_width_wc</link></methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--char-width">char_width</link></methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--char-width-wc">char_width_wc</link></methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--string-measure">string_measure</link></methodname>
    <methodparam><parameter>string</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--measure">measure</link></methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter><initializer>-1</initializer></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--char-measure">char_measure</link></methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--string-height">string_height</link></methodname>
    <methodparam><parameter>string</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--height">height</link></methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter><initializer>-1</initializer></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--char-height">char_height</link></methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--extents">extents</link></methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter></methodparam>
    <methodparam><parameter>lbearing</parameter></methodparam>
    <methodparam><parameter>rbearing</parameter></methodparam>
    <methodparam><parameter>width</parameter></methodparam>
    <methodparam><parameter>ascent</parameter></methodparam>
    <methodparam><parameter>descent</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--text-extents-wc">text_extents_wc</link></methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter></methodparam>
    <methodparam><parameter>lbearing</parameter></methodparam>
    <methodparam><parameter>rbearing</parameter></methodparam>
    <methodparam><parameter>width</parameter></methodparam>
    <methodparam><parameter>ascent</parameter></methodparam>
    <methodparam><parameter>descent</parameter></methodparam>
  </methodsynopsis>
<methodsynopsis language="python">
    <methodname><link linkend="method-gdkfont--string-extents">string_extents</link></methodname>
    <methodparam><parameter>string</parameter></methodparam>
    <methodparam><parameter>lbearing</parameter></methodparam>
    <methodparam><parameter>rbearing</parameter></methodparam>
    <methodparam><parameter>width</parameter></methodparam>
    <methodparam><parameter>ascent</parameter></methodparam>
    <methodparam><parameter>descent</parameter></methodparam>
  </methodsynopsis>
</classsynopsis>

  </refsect1>
  <refsect1>
    <title>Constructor</title>

<programlisting><constructorsynopsis language="python">
    <methodname>__init__</methodname>
    <methodparam><parameter>font_name</parameter></methodparam>
  </constructorsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>font_name</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a GdkFont*</simpara></listitem>
    </varlistentry>
  </variablelist>



  </refsect1>
  <refsect1>
    <title>Methods</title>

  <refsect2 id="method-gdkfont--id">
    <title>gtk.gdk.Font.id</title>

<programlisting><methodsynopsis language="python">
    <methodname>id</methodname>
    <methodparam></methodparam>  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--string-width">
    <title>gtk.gdk.Font.string_width</title>

<programlisting><methodsynopsis language="python">
    <methodname>string_width</methodname>
    <methodparam><parameter>string</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>string</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--width">
    <title>gtk.gdk.Font.width</title>

<programlisting><methodsynopsis language="python">
    <methodname>width</methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter><initializer>-1</initializer></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>text</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>text_length</parameter>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--text-width-wc">
    <title>gtk.gdk.Font.text_width_wc</title>

<programlisting><methodsynopsis language="python">
    <methodname>text_width_wc</methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>text</parameter>&nbsp;:</term>
      <listitem><simpara>a const-GdkWChar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>text_length</parameter>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--char-width">
    <title>gtk.gdk.Font.char_width</title>

<programlisting><methodsynopsis language="python">
    <methodname>char_width</methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>character</parameter>&nbsp;:</term>
      <listitem><simpara>a gchar</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--char-width-wc">
    <title>gtk.gdk.Font.char_width_wc</title>

<programlisting><methodsynopsis language="python">
    <methodname>char_width_wc</methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>character</parameter>&nbsp;:</term>
      <listitem><simpara>a GdkWChar</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--string-measure">
    <title>gtk.gdk.Font.string_measure</title>

<programlisting><methodsynopsis language="python">
    <methodname>string_measure</methodname>
    <methodparam><parameter>string</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>string</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--measure">
    <title>gtk.gdk.Font.measure</title>

<programlisting><methodsynopsis language="python">
    <methodname>measure</methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter><initializer>-1</initializer></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>text</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>text_length</parameter>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--char-measure">
    <title>gtk.gdk.Font.char_measure</title>

<programlisting><methodsynopsis language="python">
    <methodname>char_measure</methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>character</parameter>&nbsp;:</term>
      <listitem><simpara>a gchar</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--string-height">
    <title>gtk.gdk.Font.string_height</title>

<programlisting><methodsynopsis language="python">
    <methodname>string_height</methodname>
    <methodparam><parameter>string</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>string</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--height">
    <title>gtk.gdk.Font.height</title>

<programlisting><methodsynopsis language="python">
    <methodname>height</methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter><initializer>-1</initializer></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>text</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>text_length</parameter>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--char-height">
    <title>gtk.gdk.Font.char_height</title>

<programlisting><methodsynopsis language="python">
    <methodname>char_height</methodname>
    <methodparam><parameter>character</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>character</parameter>&nbsp;:</term>
      <listitem><simpara>a gchar</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><emphasis>Returns</emphasis>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--extents">
    <title>gtk.gdk.Font.extents</title>

<programlisting><methodsynopsis language="python">
    <methodname>extents</methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter></methodparam>
    <methodparam><parameter>lbearing</parameter></methodparam>
    <methodparam><parameter>rbearing</parameter></methodparam>
    <methodparam><parameter>width</parameter></methodparam>
    <methodparam><parameter>ascent</parameter></methodparam>
    <methodparam><parameter>descent</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>text</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>text_length</parameter>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>lbearing</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>rbearing</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>width</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>ascent</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>descent</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--text-extents-wc">
    <title>gtk.gdk.Font.text_extents_wc</title>

<programlisting><methodsynopsis language="python">
    <methodname>text_extents_wc</methodname>
    <methodparam><parameter>text</parameter></methodparam>
    <methodparam><parameter>text_length</parameter></methodparam>
    <methodparam><parameter>lbearing</parameter></methodparam>
    <methodparam><parameter>rbearing</parameter></methodparam>
    <methodparam><parameter>width</parameter></methodparam>
    <methodparam><parameter>ascent</parameter></methodparam>
    <methodparam><parameter>descent</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>text</parameter>&nbsp;:</term>
      <listitem><simpara>a const-GdkWChar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>text_length</parameter>&nbsp;:</term>
      <listitem><simpara>a gint</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>lbearing</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>rbearing</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>width</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>ascent</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>descent</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  <refsect2 id="method-gdkfont--string-extents">
    <title>gtk.gdk.Font.string_extents</title>

<programlisting><methodsynopsis language="python">
    <methodname>string_extents</methodname>
    <methodparam><parameter>string</parameter></methodparam>
    <methodparam><parameter>lbearing</parameter></methodparam>
    <methodparam><parameter>rbearing</parameter></methodparam>
    <methodparam><parameter>width</parameter></methodparam>
    <methodparam><parameter>ascent</parameter></methodparam>
    <methodparam><parameter>descent</parameter></methodparam>
  </methodsynopsis></programlisting>
  <variablelist>
    <varlistentry>
      <term><parameter>string</parameter>&nbsp;:</term>
      <listitem><simpara>a const-gchar*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>lbearing</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>rbearing</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>width</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>ascent</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
    <varlistentry>
      <term><parameter>descent</parameter>&nbsp;:</term>
      <listitem><simpara>a gint*</simpara></listitem>
    </varlistentry>
  </variablelist>
  </refsect2>


  </refsect1>
</refentry>
