comparison tools/svg2code.py @ 306:c981e561ac37

* Keep the font name as the original case. * Add some new functions for the mb_animated_menu_t widget class.
author wycc
date Sat, 21 Feb 2009 21:45:04 +0800
parents 1b69da2494e9
children 25a68d15e92f
comparison
equal deleted inserted replaced
305:0231b05552fe 306:c981e561ac37
487 elif font_style == 'oblique': 487 elif font_style == 'oblique':
488 print >> codefo, 'PANGO_STYLE(PANGO_STYLE_OBLIQUE,%d,%d)' % (start,end) 488 print >> codefo, 'PANGO_STYLE(PANGO_STYLE_OBLIQUE,%d,%d)' % (start,end)
489 pass 489 pass
490 490
491 if style_map.has_key('font-family'): 491 if style_map.has_key('font-family'):
492 font_family = style_map['font-family'].lower() 492 font_family = style_map['font-family']
493 print >> codefo, 'PANGO_FAMILY(%s,%d,%d)' % (font_family,start,end) 493 print >> codefo, 'PANGO_FAMILY(%s,%d,%d)' % (font_family,start,end)
494 pass 494 pass
495 if style_map.has_key('text-anchor'): 495 if style_map.has_key('text-anchor'):
496 text_anchor = style_map['text-anchor'].lower() 496 text_anchor = style_map['text-anchor'].lower()
497 # FIXME: We need to implement a mb_text_set_aligment to implement SVG-styled alignment. 497 # FIXME: We need to implement a mb_text_set_aligment to implement SVG-styled alignment.