changeset 5a76b123af99 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=5a76b123af99 description: Fix font size in xhtml
diffstat:
src/htmltextview.py | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r 784fa2ff7629 -r 5a76b123af99 src/htmltextview.py --- a/src/htmltextview.py Thu Jan 10 00:13:41 2013 +0400 +++ b/src/htmltextview.py Thu Jan 10 00:43:20 2013 +0400 @@ -337,14 +337,23 @@
def _parse_style_font_size(self, tag, value): try: + # see http://developer.gnome.org/pango/stable/pango-Text-Attributes.html#PANGO-SCA... + # http://consciouslyusing.blogspot.ru/2012/01/heads-up-missing-pango-text-scal... scale = { - 'xx-small': Pango.SCALE_XX_SMALL, - 'x-small': Pango.SCALE_X_SMALL, - 'small': Pango.SCALE_SMALL, - 'medium': Pango.SCALE_MEDIUM, - 'large': Pango.SCALE_LARGE, - 'x-large': Pango.SCALE_X_LARGE, - 'xx-large': Pango.SCALE_XX_LARGE, + #'xx-small': Pango.SCALE_XX_SMALL, + #'x-small': Pango.SCALE_X_SMALL, + #'small': Pango.SCALE_SMALL, + #'medium': Pango.SCALE_MEDIUM, + #'large': Pango.SCALE_LARGE, + #'x-large': Pango.SCALE_X_LARGE, + #'xx-large': Pango.SCALE_XX_LARGE, + 'xx-small': 0.5787037037037, + 'x-small': 0.6444444444444, + 'small': 0.8333333333333, + 'medium': 1.0, + 'large': 1.2, + 'x-large': 1.4399999999999, + 'xx-large': 1.728, } [value] except KeyError: pass