mateprint.Glyphlist

Glyphlist object for MatePrint

## Synopsis

        mateprint.Glyphlist
        gobject.GBoxed

    	   mateprint.Glyphlist

    	    advance
    	    advance

            bbox
            transform
            flags
            bbox

            color
            color

            duplicate

            font
            font

            glyph
            glyph

            glyphs
            glyphs
            num_glyps

            kerning
            kerning

            letterspace
            letterspace

            moveto
            x
            y

            rmoveto
            x
            y

            text_dumb
            text

    Functions

        mateprint.glyphlist_from_text_dumb
        font
        color
        kerning
        letterspace
        text

## Ancestry

    +-- gobject.GBoxed
      +-- mateprint.Glyphlist

## Description

## Constructor

    	  mateprint.Glyphlist

Returns :

- a new `mateprint.Glyphlist`.

Creates a new `mateprint.Glyphlist` object.

## Methods

### mateprint.Glyphlist.advance

                    advance

`advance` :

- if `TRUE` move the pen position, `FALSE` otherwise.

The `advance`() method decide whether or not to move the pen position by the font standard advance vector. Advancing happens immediately after glyph is sent through pipeline.

### mateprint.Glyphlist.bbox

                    bbox
                        transform
                        flags
                        bbox

`transform` :

`flags` :

- should be 0 for now.

`bbox` :

Returns :

- bbox or `None` on error.

The `bbox`() method gets ink dimensions of transformed glyphlist Flags are to specify user preferences, should be 0 for now.

### mateprint.Glyphlist.color

                color
                color

`color` :

- the color in the form RRGGBBAA.

The `color`() method specify the color as RRGGBBAA to be used for the glyphs that follow.

### mateprint.Glyphlist.duplicate

                    duplicate

Returns :

The `duplicate`() method

### mateprint.Glyphlist.font

                    font
                    font

`font` :

The `font`() method specify the font to be used for the glyphs that follow.

### mateprint.Glyphlist.glyph

                    glyph
                    glyph

`glyph` :

The `glyph`() method appends a single glyph to the glyphlist. It will be connected to the previous glyphs by the previously defined rules.

### mateprint.Glyphlist.glyphs

                    glyphs
                    glyphs
                    num_glyps

`glyps` :

`val` :

The `gluphs`() method append a string of glyphs.

### mateprint.Glyphlist.kerning

                    kerning
                    kerning

`kerning` :

The `kerning`() method sets the amount of kerning to add between glyphs connected by an advance rule. It is specified as fraction of a full kerning value If a glyph is manually positioned, the kerning value is ignored Kerning will be added immediately before placing a new glyph.

### mateprint.Glyphlist.letterspace

                    letterspace
                    letterspace

`letterspace` :

The `letterspace`() method sets the amount of white space to add between glyphs connected by an advance rule. It is specified in font units (i.e. 12 for 12pt font is the width of an em square). If glyph is manually positioned, letterspace value will be ignored. Letterspace will be added immediately before placing a new glyph

### mateprint.Glyphlist.moveto

                    moveto
                    x
                    y

`x` :

`y` :

The `moveto`() method position manually the glyph following.

### mateprint.Glyphlist.rmoveto

                rmoveto
                x
                y

`x` :

`y` :

The `rmoveto`() method position the glyph following relative to current pen position.

### mateprint.Glyphlist.text_dumb

                    text_dumb
                    text

`text` :

The `text_dumb`() method

## Functions

### mateprint.glyphlist_from_text_dumb

                      mateprint.glyphlist_from_text_dumb
                      font
                      color
                      kerning
                      letterspace
                      text

`font` :

`color` :

`kerning` :

`letterspace` :

`text` :

Returns :

The `glyphlist_from_text_dumb`() function appends utf8 text, converting it to glyphs and connecting it as specified by rules. You cannot expect anything about language-specific typesetting rules, so if the given script does not use trivial placement, you should better avoid this.