[Python-apps-commits] r9656 - in packages/retext/trunk/debian (4 files)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Sat May 18 15:57:49 UTC 2013


    Date: Saturday, May 18, 2013 @ 15:57:48
  Author: mitya57-guest
Revision: 9656

debian/patches/git_fix_monospace_fonts.patch: work-around
monospace fonts not working with QtWebKit 2.3 (LP: #1165378).

Added:
  packages/retext/trunk/debian/patches/
  packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch
  packages/retext/trunk/debian/patches/series
Modified:
  packages/retext/trunk/debian/changelog

Modified: packages/retext/trunk/debian/changelog
===================================================================
--- packages/retext/trunk/debian/changelog	2013-05-17 18:24:19 UTC (rev 9655)
+++ packages/retext/trunk/debian/changelog	2013-05-18 15:57:48 UTC (rev 9656)
@@ -6,6 +6,8 @@
   * Added Brazilian Portuguese translation (from Transifex).
   * Drop the reStructuredText mime file, instead recommend
     docutils-common (>= 0.10-3~) which ships it now.
+  * debian/patches/git_fix_monospace_fonts.patch: work-around
+    monospace fonts not working with QtWebKit 2.3 (LP: #1165378).
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Sun, 24 Mar 2013 17:40:52 +0400
 

Added: packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch
===================================================================
--- packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch	                        (rev 0)
+++ packages/retext/trunk/debian/patches/git_fix_monospace_fonts.patch	2013-05-18 15:57:48 UTC (rev 9656)
@@ -0,0 +1,28 @@
+Description: work-around monospace fonts not working in QtWebKit
+Origin: upstream, http://sourceforge.net/p/retext/git/ci/5fec4aecf7/
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1165378
+Last-Update: 2013-05-18
+
+--- a/ReText/__init__.py
++++ b/ReText/__init__.py
+@@ -33,7 +33,7 @@ DOCTYPE_REST = markups.ReStructuredTextMarkup.name
+ DOCTYPE_HTML = 'html'
+ 
+ try:
+-       from PyQt4.QtWebKit import QWebView, QWebPage
++       from PyQt4.QtWebKit import QWebView, QWebPage, QWebSettings
+ except:
+        webkit_available = False
+ else:
+--- a/retext.py
++++ b/retext.py
+@@ -40,6 +40,9 @@ def main():
+                sheetfile.open(QIODevice.ReadOnly)
+                app.setStyleSheet(QTextStream(sheetfile).readAll())
+                sheetfile.close()
++       # A work-around for https://bugs.webkit.org/show_bug.cgi?id=114618
++       webSettings = QWebSettings.globalSettings()
++       webSettings.setFontFamily(QWebSettings.FixedFont, 'monospace')
+        window = ReTextWindow()
+        window.show()
+        fileNames = [QFileInfo(arg).canonicalFilePath() for arg in sys.argv[1:]]

Added: packages/retext/trunk/debian/patches/series
===================================================================
--- packages/retext/trunk/debian/patches/series	                        (rev 0)
+++ packages/retext/trunk/debian/patches/series	2013-05-18 15:57:48 UTC (rev 9656)
@@ -0,0 +1 @@
+git_fix_monospace_fonts.patch




More information about the Python-apps-commits mailing list