diff -Nru gnochm-0.9.11/debian/changelog gnochm-0.9.11/debian/changelog --- gnochm-0.9.11/debian/changelog 2008-09-03 12:56:13.000000000 -0300 +++ gnochm-0.9.11/debian/changelog 2008-09-03 12:56:14.000000000 -0300 @@ -1,3 +1,10 @@ +gnochm (0.9.11-2ubuntu1) intrepid; urgency=low + + * debian/patches/04_gnochm-fontsize.patch + - Added patch from Daniel J Blueman to fix small fontsize. (LP: #86889) + + -- Allisson Azevedo Wed, 03 Sep 2008 12:30:22 -0300 + gnochm (0.9.11-2) unstable; urgency=low * QA upload. diff -Nru /tmp/kZDyWrQjvt/gnochm-0.9.11/debian/patches/04_gnochm-fontsize.patch /tmp/UQgeO9T24G/gnochm-0.9.11/debian/patches/04_gnochm-fontsize.patch --- gnochm-0.9.11/debian/patches/04_gnochm-fontsize.patch 1969-12-31 21:00:00.000000000 -0300 +++ gnochm-0.9.11/debian/patches/04_gnochm-fontsize.patch 2008-09-03 12:56:14.000000000 -0300 @@ -0,0 +1,34 @@ +--- gnochm-0.9.11/gnochm.py.in 2007-09-15 13:20:23.000000000 +0100 ++++ gnochm-0.9.11-new/gnochm.py.in 2008-08-30 14:14:39.959040980 +0100 +@@ -758,6 +758,8 @@ + class MainApp: + def __init__(self): + self.FirstTime = 1 ++ # zoom adjustment needed to workaround CHM files displaying too small ++ self.zoom_compensate = 5 + self.chmfiles = [] + self.xml = gtk.glade.XML(path_mainwin, None, app) + self.setup_gnome_app() +@@ -1528,6 +1530,11 @@ + else: + self.mainwin.set_title(_('CHM Viewer - %s') % + os.path.basename(filename)) ++ ++ # workaround CHM files displaying too small ++ for i in range(0, self.zoom_compensate): ++ self.htmlview.zoom_in() ++ + if self.FirstTime: + self.xml.get_widget('zoom_in').set_sensitive(True) + self.xml.get_widget('zoom_out').set_sensitive(True) +@@ -1647,6 +1654,10 @@ + def on_zoomreset_activate(self, *args): + self.htmlview.zoom_reset() + ++ # workaround CHM files displaying too small ++ for n in range(0, self.zoom_compensate): ++ self.htmlview.zoom_in() ++ + def on_zoomout_activate(self, *args): + self.htmlview.zoom_out() +