class documentation

class FontManager: (source)

View In Hierarchy

Manages a set of fonts: normal, italic, bold, etc...

Method __init__ Undocumented
Method get_char_size Get the character size.
Method get_font Get the font based on bold and italic flags.
Method get_text_size Get the text size (width, height).
Instance Variable encoding Undocumented
Instance Variable font_name Undocumented
Instance Variable font_size Undocumented
Instance Variable fonts Undocumented
Method _create_mac Undocumented
Method _create_nix Undocumented
Method _create_win Undocumented
Method _get_mac_font_path Undocumented
Method _get_nix_font_path Undocumented
Method _lookup_win Undocumented
def __init__(self, font_name, font_size=14): (source)

Undocumented

def get_char_size(self): (source)

Get the character size.

def get_font(self, bold, oblique): (source)

Get the font based on bold and italic flags.

def get_text_size(self, text): (source)

Get the text size (width, height).

encoding = (source)

Undocumented

font_name = (source)

Undocumented

font_size = (source)

Undocumented

Undocumented

def _create_mac(self): (source)

Undocumented

def _create_nix(self): (source)

Undocumented

def _create_win(self): (source)

Undocumented

def _get_mac_font_path(self, font_map, name, style): (source)

Undocumented

def _get_nix_font_path(self, name, style): (source)

Undocumented

def _lookup_win(self, key, basename, styles, fail=False): (source)

Undocumented