Changeset 9738

Show
Ignore:
Timestamp:
06/02/08 10:10:36 (6 months ago)
Author:
asterix
Message:

[Yrogirg] configurable latex formulas font size. Fixes #3986

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/config.py

    r9721 r9738  
    251251                'attach_notifications_to_systray': [opt_bool, False, _('If True, notification windows from notification-daemon will be attached to systray icon.')], 
    252252                'check_idle_every_foo_seconds': [opt_int, 2, _('Choose interval between 2 checks of idleness.')], 
     253                'latex_png_dpi': [opt_str, '108',_('Change the value to change the size of latex formulas displayed. The higher is larger.') ], 
    253254        } 
    254255 
  • trunk/src/conversation_textview.py

    r9501 r9738  
    855855 
    856856                if exitcode == 0: 
    857                         convert_version = helpers.get_output_of_command( 
    858                                 'convert -version')[0].split()[2] 
    859                         convert_version = [int(n) for n in convert_version.split('.')] 
    860                         if convert_version > [6, 3, 4]: 
    861                                 # -alpha option was added in 6.3.5 release 
    862                                 alpha = ['-alpha', 'off'] 
    863                         else: 
    864                                 alpha = [] 
    865                         p = Popen(['convert'] + alpha + [tmpfile + '.ps', tmpfile + '.png'], 
     857                        latex_png_dpi = gajim.config.get('latex_png_dpi') 
     858                        p = Popen(['convert', '-background', 'white', '-flatten', '-density', latex_png_dpi, tmpfile + '.ps', tmpfile + '.png'], 
    866859                                cwd=gettempdir()) 
    867860                        exitcode = p.wait()