Ticket #26: tick_font.diff
| File tick_font.diff, 1.7 kB (added by ged@…, 3 years ago) |
|---|
-
pie.py
129 129 if self.options.axis.x.hide or not self.xticks: 130 130 return 131 131 132 cx.select_font_face(self.options.axis.tickFont, 133 cairo.FONT_SLANT_NORMAL, 134 cairo.FONT_WEIGHT_NORMAL) 135 cx.set_font_size(self.options.axis.tickFontSize) 136 132 137 self.xlabels = [] 133 138 lookup = dict([(slice.xval, slice) for slice in self.slices]) 134 139 -
chart.py
327 327 cx.close_path() 328 328 cx.stroke() 329 329 330 cx.select_font_face(self.options.axis.tickFont, 331 cairo.FONT_SLANT_NORMAL, 332 cairo.FONT_WEIGHT_NORMAL) 333 cx.set_font_size(self.options.axis.tickFontSize) 334 330 335 label = unicode(tick[1]) 331 336 extents = cx.text_extents(label) 332 337 labelWidth = extents[2] … … 362 367 cx.close_path() 363 368 cx.stroke() 364 369 370 cx.select_font_face(self.options.axis.tickFont, 371 cairo.FONT_SLANT_NORMAL, 372 cairo.FONT_WEIGHT_NORMAL) 373 cx.set_font_size(self.options.axis.tickFontSize) 374 365 375 label = unicode(tick[1]) 366 376 extents = cx.text_extents(label) 367 377 labelWidth = extents[2] … … 614 624 labelColor='#666666', 615 625 labelFont='Tahoma', 616 626 labelFontSize=9, 627 tickFont='Tahoma', 628 tickFontSize=9, 617 629 labelWidth=50.0, 618 630 x=Option( 619 631 hide=False,
