ImageFont
index
/Library/Python/2.7/site-packages/PIL/ImageFont.py

# The Python Imaging Library.
# $Id$
#
# PIL raster font management
#
# History:
# 1996-08-07 fl   created (experimental)
# 1997-08-25 fl   minor adjustments to handle fonts from pilfont 0.3
# 1999-02-06 fl   rewrote most font management stuff in C
# 1999-03-17 fl   take pth files into account in load_path (from Richard Jones)
# 2001-02-17 fl   added freetype support
# 2001-05-09 fl   added TransposedFont wrapper class
# 2002-03-04 fl   make sure we have a "L" or "1" font
# 2002-12-04 fl   skip non-directory entries in the system path
# 2003-04-29 fl   add embedded default font
# 2003-09-27 fl   added support for truetype charmap encodings
#
# Todo:
# Adapt to PILFONT2 format (16-bit fonts, compressed, single file)
#
# Copyright (c) 1997-2003 by Secret Labs AB
# Copyright (c) 1996-2003 by Fredrik Lundh
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
Image
os
string
sys

 
Classes
       
FreeTypeFont
ImageFont
TransposedFont

 
class FreeTypeFont
    FreeType font wrapper (requires _imagingft service)
 
  Methods defined here:
__init__(self, file, size, index=0, encoding='')
getmask(self, text, mode='')
getmask2(self, text, mode='', fill=<built-in function fill>)
getmetrics(self)
getname(self)
getsize(self, text)

 
class ImageFont
    PIL font wrapper
 
 

 
class TransposedFont
    Wrapper for writing rotated or mirrored text
 
  Methods defined here:
__init__(self, font, orientation=None)
getmask(self, text, mode='')
getsize(self, text)

 
Functions
       
load(filename)
Load a font file.
load_default()
Load a default font.
load_path(filename)
Load a font file, searching along the Python path.
truetype(filename, size, index=0, encoding='')
Load a truetype font file.

 
Data
        core = <_imagingft_not_installed instance>