mateprint.Font

Font object for MatePrint

## Synopsis

        mateprint.Font
        gobject.GObject

    	   mateprint.Font
    	   face
           size

    	    get_ascender

            get_descender

            get_face

            get_family_name

            get_full_name

            get_glyph_stdadvance
            glyph
            advance

            get_glyph_stdbbox
            glyph
            bbox

            get_glyph_stdkerning
            glyph0
            glyph1
            kerning

            get_glyph_stdoutline
            glyph

            get_glyph_width
            glyph

            get_name

            get_ps_name

            get_size

            get_size

            get_species_name

            get_underline_position

            get_underline_thickness

            lookup_default
            unicode

    Functions

        mateprint.font_family_list

        mateprint.font_find_closest
        name
        size

        mateprint.font_find_closest_from_full_name
        string

        mateprint.font_find_closest_from_weight_slant
        family
        weight
        italic
        size

        mateprint.font_list

        mateprint.font_style_list
        family

## Ancestry

    +-- gobject.GObject
      +-- mateprint.Font

## Properties

> "FontName" | Read | The font name.
> "FullName" | Read | The font full name.
> "FamilyName" | Read | The font family name.
> "Weight" | Read | The font weight.
> "ItalicAngle" | Read | The angle of the italic font.
> "IsFixedPitch" | Read | `TRUE` if the font is fixed pitch, `FALSE` otherwise.
> "FontBBox" | Read |
> "UnderlinePosition" | Read | The underline position of the font.
> "UnderlineThickness" | Read | The underline thickness of the font.
> "Version" | Read |
> "CapHeight" | Read |
> "XHeight" | Read |
> "Ascender" | Read | The ascender of the font
> "Descender" | Read | The descender of the font
> "size" | Read | The size of the font.

## Description

## Constructor

    	  mateprint.Font
    	  face
          size

`face` :

- a face font name.

`config` :

- a font size.

Returns :

- a new `mateprint.Font`.

Creates a new `mateprint.Font` object.

## Methods

### mateprint.Font.get_ascender

                    get_ascender

Returns :

- the ascender of the font.

The `get_ascender`() method works with the standard Adobe encoding and without kerning or ligatures. When the text libs get written, this function will be deprecated.

### mateprint.Font.get_descender

                    get_descender

Returns :

- the descender of the font.

The `get_descender`() method works with the standard Adobe encoding and without kerning or ligatures. When the text libs get written, this function will be deprecated.

### mateprint.Font.get_face

                    get_face

Returns :

- the face of the font.

The `get_face`() method

### mateprint.Font.get_family_name

                    get_family_name

Returns :

- the family name of the font.

The `get_family_name`() method

### mateprint.Font.get_full_name

                    get_full_name

Returns :

- the full name of the font.

The `get_full_name`() method

### mateprint.Font.get_glyph_stdadvance

                    get_glyph_stdadvance
                        glyph
                        advance

`glyph` :

`advance` :

Returns :

The `get_glyph_stdadvance`() method

### mateprint.Font.get_glyph_stdbbox

                    get_glyph_stdbbox
                    glyph
                    bbox

`glyph` :

`bbox` :

Returns :

The `get_glyph_stdbbox`() method

### mateprint.Font.get_glyph_stdkerning

                    get_glyph_stdkerning
                    glyph0
                    glyph1
                    kerning

`glyph0` :

`glyph1` :

`kerning` :

Returns :

The `get_glyph_stdkerning`() method

### mateprint.Font.get_glyph_stdoutline

                    get_glyph_stdoutline
                    glyph

`glyph` :

Returns :

The `get_glyph_stdoutline`() method

### mateprint.Font.get_glyph_width

                    get_glyph_width
                    glyph

`glyph` :

Returns :

The `get_glyph_width`() method

### mateprint.Font.get_name

                    get_name

Returns :

The `get_name`() method

### mateprint.Font.get_ps_name

                    get_ps_name

Returns :

The `get_ps_name`() method

### mateprint.Font.get_size

                    get_size

Returns :

The `get_size`() method

### mateprint.Font.get_species_name

                    get_species_name

Returns :

The `get_species_name`() method

### mateprint.Font.get_underline_position

                    get_underline_position

Returns :

- the underline position of the font.

The `get_underline_position`() method works with the standard Adobe encoding and without kerning or ligatures. When the text libs get written, this function will be deprecated.

### mateprint.Font.get_underline_thickness

                    get_underline_thickness

Returns :

- the underline thickness of the font.

The `get_underline_thickness`() method works with the standard Adobe encoding and without kerning or ligatures. When the text libs get written, this function will be deprecated.

### mateprint.Font.lookup_default

                    lookup_default
                    unicode

`unicode` :

Returns :

- glyph number, -1 if it is not mapped.

The `lookup_default`() method get the glyph number corresponding to a given unicode.

## Functions

### mateprint.font_family_list

                      mateprint.font_family_list

Returns :

The `font_family_list`() function

### mateprint.font_find_closest

                    mateprint.font_find_closest
                    name
                    size

`name` :

`size` :

Returns :

The `font_find_closest`() function

### mateprint.font_find_closest_from_full_name

                    mateprint.font_find_closest_from_full_name
                    string

`string` :

Returns :

The `font_find_closest_from_full_name`() function

### mateprint.font_find_closest_from_weight_slant

                    mateprint.font_find_closest_from_weight_slant
                    family
                    weight
                    italic
                    size

`family` :

`weight` :

`italic` :

`size` :

Returns :

The `font_find_closest_from_weight_slant`() function

### mateprint.font_list

                    mateprint.font_list

Returns :

The `font_list`() function

### mateprint.font_style_list

                      mateprint.font_style_list

Returns :

The `font_style_list`() function