diff options
author | Matt Wilson <msw@redhat.com> | 2001-11-27 21:27:36 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-11-27 21:27:36 +0000 |
commit | 127e53dfc1bb6813bc134b26223b4641e6fae2e1 (patch) | |
tree | 535c43b5ef0ee3e71c955acd705df980c39d912c /htmlbuffer.py | |
parent | 161f0d8f6cc9c04c7f5ce2ea5341da86abd35df5 (diff) | |
download | anaconda-127e53dfc1bb6813bc134b26223b4641e6fae2e1.tar.gz anaconda-127e53dfc1bb6813bc134b26223b4641e6fae2e1.tar.xz anaconda-127e53dfc1bb6813bc134b26223b4641e6fae2e1.zip |
don't use the old set_all adjustment function, set numeric properties, make html widget easier to customize
Diffstat (limited to 'htmlbuffer.py')
-rw-r--r-- | htmlbuffer.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/htmlbuffer.py b/htmlbuffer.py index 229c3e3f5..6cac809e9 100644 --- a/htmlbuffer.py +++ b/htmlbuffer.py @@ -38,8 +38,10 @@ class HTMLBuffer(HTMLParser.HTMLParser): else: baseSize = 10 + baseFont = 'sans' + tag = self.buffer.create_tag('body') - tag.set_property('font', 'Sans %d' % (baseSize,)) + tag.set_property('font', '%s %d' % (baseFont, baseSize)) tag = self.buffer.create_tag('p') tag.set_property('pixels-above-lines', '5') @@ -49,14 +51,14 @@ class HTMLBuffer(HTMLParser.HTMLParser): tag.set_property('font', 'Monospace %d' % (baseSize,)) tag = self.buffer.create_tag('a') - tag.set_property('font', 'Sans %d' % (baseSize,)) + tag.set_property('font', '%s %d' % (baseFont, baseSize)) tag = self.buffer.create_tag('h1') - tag.set_property('font', 'Sans %d' % (baseSize + 10,)) + tag.set_property('font', '%s %d' % (baseFont, baseSize + 10)) tag.set_property('weight', pango.WEIGHT_BOLD) tag = self.buffer.create_tag('h2') - tag.set_property('font', 'Sans %d' % (baseSize + 4,)) + tag.set_property('font', '%s %d' % (baseFont, baseSize + 4)) tag.set_property('weight', pango.WEIGHT_BOLD) tag = self.buffer.create_tag('b') |