LaTeX fonts.
Hello!
The present way latex formulas are displayed is not nice. Fonts are small and lack anti-aliasing. I`ve changed a bit conversation_textview.py and common\config.py.
To be able to change the fontsize via config editor in common\config.py I added:
'latex_png_dpi': [opt_str, '144',_('Change the value to change the size of latex formulas displayed. The higher is larger.') ],
in conversation_textview.py :
if exitcode == 0: latex_png_dpi = gajim.config.get('latex_png_dpi') p = Popen(['convert', '-density', latex_png_dpi, tmpfile + '.ps', tmpfile + '.png'], cwd=gettempdir()) exitcode = p.wait()
Actually there was also an alpha option but using this prevents the fonts from anti-aliasing (dont know why, but its true for my computer), so I ommited it. By the way, generated by default images are transperent (it
s also true for my computer).
I suppose it would be usefull for users to be able to change formulas size. Could you please do something with this?
I attached some pictures showing current and desired state.
P.S. Default value of 144 may be too large, so 108?