Package Things :: Module BagOfStuff :: Class AFont
[frames] | no frames]

Class AFont

object --+
         |
        AFont

Makes a font, from a file, temporarily available to the GTK system. This fonts is placed in the user's .fonts directory and removed when the app closes.

TIP

To find the 'family name' of Comic.ttf from the command-line, try this: fc-list : family file | grep Comic.ttf

Note: The font needs to be installed first. This is truly a PITA. Try using Fonty Python to help you.

Instance Methods
 
__init__(self, paf)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, paf)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)