gnomeprint.Font — Font object for GnomePrint
class gnomeprint.Font( |
Functionsdef gnomeprint.font_family_list()def gnomeprint.font_find_closest(name,size)def gnomeprint.font_find_closest_from_full_name(string)def gnomeprint.font_find_closest_from_weight_slant(family,weight,italic,size)def gnomeprint.font_list()def gnomeprint.font_style_list(family)
|
gnomeprint.Font(face, size)
| a face font name. |
| a font size. |
Returns : | a new gnomeprint.Font.
|
Creates a new gnomeprint.Font 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 family name of the font. |
The get_family_name() method
def get_full_name()Returns : | the full name of the font. |
The get_full_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_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_family_list()Returns : |
The font_family_list() function
def gnomeprint.font_find_closest(name, size)
| |
| |
Returns : |
The font_find_closest() function
def gnomeprint.font_find_closest_from_full_name(string)
| |
Returns : |
The font_find_closest_from_full_name() function