gnomeprint.Glyphlist — Glyphlist object for GnomePrint
class gnomeprint.Glyphlist(gobject.GBoxed): |
Functions
def gnomeprint.glyphlist_from_text_dumb(font
, color
, kerning
, letterspace
, text
)
gnomeprint.Glyphlist(
)
Returns : | a new gnomeprint.Glyphlist .
|
Creates a new gnomeprint.Glyphlist
object.
def 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.
def bbox(transform
, flags
, bbox
)
| |
| should be 0 for now. |
| |
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.
def color(color
)
| the color in the form RRGGBBAA. |
The color
() method specify the color as RRGGBBAA to be used for the glyphs that follow.
def font(font
)
|
The font
() method specify the font to be used for the glyphs that follow.
def 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.
def glyphs(glyphs
, num_glyps
)
| |
|
The gluphs
() method append a string of glyphs.
def 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.
def 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
def moveto(x
, y
)
| |
|
The moveto
() method position manually the glyph following.
def gnomeprint.glyphlist_from_text_dumb(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.