gnomeprint.FontFace — FontFace object for GnomePrint
class gnomeprint.FontFace(gobject.GObject): |
Functionsdef gnomeprint.font_face_find_closest_from_pango_description(
desc
)def gnomeprint.font_face_find_closest_from_pango_font(
pfont
)def gnomeprint.font_face_find_closest_from_weight_slant(
family
,weight
,italic
)def gnomeprint.font_face_find_from_family_and_style(
family
,style
)
|
gnomeprint.FontFace(name
)
| a font name. |
Returns : | a new gnomeprint.FontFace .
|
Creates a new gnomeprint.FontFace
object.
def 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.
def 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.
def get_family_name()
Returns : | the name, None on error. |
The get_family_name
() method get the family name.
def get_font(size
, xres
, yres
)
| |
| |
| |
Returns : | the face of the font. |
The get_face
() method
def get_glyph_ps_name(glyph
)
| |
Returns : | the full name of the font. |
The get_glyph_ps_name
() method
def get_glyph_stdadvance(glyph
, advance
)
| |
| |
Returns : |
The get_glyph_stdadvance
() method
def get_glyph_stdbbox(glyph
, bbox
)
| |
| |
Returns : |
The get_glyph_stdbbox
() method
def get_glyph_stdkerning(glyph0
, glyph1
, kerning
)
| |
| |
| |
Returns : |
The get_glyph_stdkerning
() method
def get_glyph_stdoutline(glyph
)
| |
Returns : |
The get_glyph_stdoutline
() method
def get_glyph_width(glyph
)
| |
Returns : |
The get_glyph_width
() method
def get_num_glyphs()
Returns : | the number of glyphs, 0 on error. |
The get_num_glyphs
() method returns the number of glyphs in the font.
def 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.
def gnomeprint.font_face_find_closest_from_pango_description(desc
)
| a pango.FontDescription . |
Returns : |
The font_face_find_closest_from_pango_description
() function
def gnomeprint.font_face_find_closest_from_pango_font(pfont
)
| a pango.Font . |
Returns : |
The font_face_find_closest_from_pango_font
() function
def gnomeprint.font_find_closest_from_full_name(string
)
| |
Returns : |
The font_find_closest_from_full_name
() function