Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « matplotlib.afm »

Classe « AFM »

Informations générales

Héritage

builtins.object
    AFM

Définition

class AFM(builtins.object):

Constructeur(s)

Signature du constructeur Description
__init__(self, fh) Parse the AFM file in file object *fh*. [extrait de __init__.__doc__]

Liste des propriétés

Nom de la propriétéDescription
family_nameThe font family name, e.g., 'Times'. [extrait de __doc__]
postscript_name

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
get_angle(self) Return the fontangle as float. [extrait de get_angle.__doc__]
get_bbox_char(self, c, isord=False)
get_capheight(self) Return the cap height as float. [extrait de get_capheight.__doc__]
get_familyname(self) Return the font family name, e.g., 'Times'. [extrait de get_familyname.__doc__]
get_fontname(self) Return the font name, e.g., 'Times-Roman'. [extrait de get_fontname.__doc__]
get_fullname(self) Return the font full name, e.g., 'Times-Roman'. [extrait de get_fullname.__doc__]
get_height_char(self, c, isord=False) Get the bounding box (ink) height of character *c* (space is 0). [extrait de get_height_char.__doc__]
get_horizontal_stem_width(self)
get_kern_dist(self, c1, c2)
get_kern_dist_from_name(self, name1, name2)
get_name_char(self, c, isord=False) Get the name of the character, i.e., ';' is 'semicolon'. [extrait de get_name_char.__doc__]
get_str_bbox(self, s) Return the string bounding box. [extrait de get_str_bbox.__doc__]
get_str_bbox_and_descent(self, s) Return the string bounding box and the maximal descent. [extrait de get_str_bbox_and_descent.__doc__]
get_underline_thickness(self) Return the underline thickness as float. [extrait de get_underline_thickness.__doc__]
get_vertical_stem_width(self)
get_weight(self) Return the font weight, e.g., 'Bold' or 'Roman'. [extrait de get_weight.__doc__]
get_width_char(self, c, isord=False)
get_width_from_char_name(self, name) Get the width of the character from a type1 character name. [extrait de get_width_from_char_name.__doc__]
get_xheight(self) Return the xheight as float. [extrait de get_xheight.__doc__]
string_width_height(self, s)

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__