Changeset 175 for trunk/pycha/pie.py

Show
Ignore:
Timestamp:
03/21/09 08:19:39 (3 years ago)
Author:
lgs
Message:

Allow to specify the font of the ticks. Based on a patch by ged_AT_openhex.org. Fixes #26

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pycha/pie.py

    r169 r175  
    133133        lookup = dict([(slice.xval, slice) for slice in self.slices]) 
    134134 
     135 
     136        cx.select_font_face(self.options.axis.tickFont, 
     137                            cairo.FONT_SLANT_NORMAL, 
     138                            cairo.FONT_WEIGHT_NORMAL) 
     139        cx.set_font_size(self.options.axis.tickFontSize) 
     140 
    135141        cx.set_source_rgb(*hex2rgb(self.options.axis.labelColor)) 
    136142