[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] LibreOffice packaging repository branch, ubuntu-precise-3.5, updated. libreoffice_3.5.2_rc2-1-141-gf64b3e8



The following commit has been merged in the ubuntu-precise-3.5 branch:
commit f64b3e8ac0538903b373f8a1ab7ed217e5a1d3ab
Author: Nobuto MURATA <nobuto@ubuntu.com>
Date:   Wed Nov 28 12:35:16 2012 +0100

    improve rendering of the "faux bold" font on Impress presentation (lp#585910)

diff --git a/changelog b/changelog
index 0d934c3..5571826 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,13 @@
+libreoffice (1:3.5.7-0ubuntu2) quantal; urgency=low
+
+  [Nobuto MURATA]
+  * debian/patches/improve-faux-bold-font.patch: added
+    - cherry-picked from upstream
+    - improve rendering of the "faux bold" font on Impress
+      presentation (LP: #585910).
+
+ -- Bjoern Michaelsen <bjoern.michaelsen@canonical.com>  Wed, 28 Nov 2012 12:31:27 +0100
+
 libreoffice (1:3.5.7-0ubuntu1) precise-proposed; urgency=low
 
   * final upstream bugfix release -- SRU for precise (LP: #1037111)
diff --git a/patches/improve-faux-bold-font.diff b/patches/improve-faux-bold-font.diff
new file mode 100644
index 0000000..587ec8b
--- /dev/null
+++ b/patches/improve-faux-bold-font.diff
@@ -0,0 +1,28 @@
+## From: Nobuto MURATA <nobuto@ubuntu.com>
+## Description: improve "faux bold" on Impress presentation
+##  cherry-picked from upstream 3.6 branch and refreshed to apply
+##  into 3.5.x.
+##  The "faux bold" make the bold font in Asian ugly & unacceptable,
+##  Adjust & improve the "faux bold" to make the bold font better.
+## Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47432
+## Bug-Ubuntu: https://launchpad.net/bugs/585910
+## Origin: upstream, http://cgit.freedesktop.org/libreoffice/core/commit/?id=cad7a5814775adf458f8a490700fa5ef6b8f8638&g=libreoffice-3-6
+## Forwarded: not-needed
+--- a/canvas/source/cairo/cairo_textlayout.cxx
++++ b/canvas/source/cairo/cairo_textlayout.cxx
+@@ -606,12 +606,13 @@
+             //faux bold
+             if (rSysFontData.bFakeBold) {
+                 double bold_dx = 0.5 * sqrt( 0.7 * aFont.GetHeight() );
+-                int total_steps = 2 * ((int) (bold_dx + 0.5));
++                int total_steps = 1 * ((int) (bold_dx + 0.5));
+ 
+                 // loop to draw the text for every half pixel of displacement
+                 for (int nSteps = 0; nSteps < total_steps; nSteps++) {
+                     for(int nGlyphIdx = 0; nGlyphIdx < (int) cairo_glyphs.size(); nGlyphIdx++) {
+-                        cairo_glyphs[nGlyphIdx].x += bold_dx * nSteps / total_steps;
++                        cairo_glyphs[nGlyphIdx].x += (bold_dx * nSteps / total_steps) / 4;
++                        cairo_glyphs[nGlyphIdx].y += (bold_dx * nSteps / total_steps) / 4;
+                     }
+                     cairo_show_glyphs(pSCairo.get(), &cairo_glyphs[0], cairo_glyphs.size());
+                 }
diff --git a/patches/series b/patches/series
index 9bcd82e..b7eceb7 100644
--- a/patches/series
+++ b/patches/series
@@ -34,3 +34,4 @@ lp-753627-readd-updated-Ubuntu-brand-palette-colors.diff
 lp-973134-default-to-Documents-for-saving-look-for-t.diff
 lp-527938-triple-paperbag-fix-service-name-again.diff
 lp-904212-add-missing-mimetypes-to-impress.desktop.diff
+improve-faux-bold-font.diff

-- 
LibreOffice packaging repository


Reply to: