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

Bug#573622: openoffice.org: impress displays bold font as too bold



tags 573622 patch fixed-upstream
thanks

Hi,

 Upstream (LibO) has committed fix to this bug as 
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=b6aa58c4d8af8b960b085646d97f73c912503a96

 Please include it to Debian as well.


-- 
Regards,

 Hideki Yamane     henrich @ debian.or.jp/org
 http://wiki.debian.org/HidekiYamane
diff -Nru libreoffice-3.6.3~rc2/debian/changelog libreoffice-3.6.3~rc2/debian/changelog
--- libreoffice-3.6.3~rc2/debian/changelog	2012-10-26 22:47:13.000000000 +0900
+++ libreoffice-3.6.3~rc2/debian/changelog	2012-11-18 21:37:12.000000000 +0900
@@ -1,3 +1,11 @@
+libreoffice (1:3.6.3~rc2-2) experimental; urgency=low
+
+  [ Hideki Yamane ]
+  * debian/patches/bug573622_impress_boldfont_with_asian_fonts.patch
+    - fix asian fonts bold issue with Impress (Closes: #573622)
+
+ -- Hideki Yamane <henrich@debian.org>  Sun, 18 Nov 2012 21:35:44 +0900
+
 libreoffice (1:3.6.3~rc2-1) experimental; urgency=low
 
   * new upstream release candidate
diff -Nru libreoffice-3.6.3~rc2/debian/patches/bug573622_impress_boldfont_with_asian_fonts.patch libreoffice-3.6.3~rc2/debian/patches/bug573622_impress_boldfont_with_asian_fonts.patch
--- libreoffice-3.6.3~rc2/debian/patches/bug573622_impress_boldfont_with_asian_fonts.patch	1970-01-01 09:00:00.000000000 +0900
+++ libreoffice-3.6.3~rc2/debian/patches/bug573622_impress_boldfont_with_asian_fonts.patch	2012-11-18 21:31:52.000000000 +0900
@@ -0,0 +1,22 @@
+Index: libreoffice-3.6.3~rc2/canvas/source/cairo/cairo_textlayout.cxx
+===================================================================
+--- libreoffice-3.6.3~rc2.orig/canvas/source/cairo/cairo_textlayout.cxx	2012-10-23 23:38:39.000000000 +0900
++++ libreoffice-3.6.3~rc2/canvas/source/cairo/cairo_textlayout.cxx	2012-11-18 21:31:46.553500289 +0900
+@@ -618,14 +618,15 @@
+             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 -Nru libreoffice-3.6.3~rc2/debian/patches/series libreoffice-3.6.3~rc2/debian/patches/series
--- libreoffice-3.6.3~rc2/debian/patches/series	2012-10-23 02:51:17.000000000 +0900
+++ libreoffice-3.6.3~rc2/debian/patches/series	2012-11-18 21:30:41.000000000 +0900
@@ -30,3 +30,4 @@
 soffice-bashisms.diff
 he-lucida-sans-unicode.diff
 ure-no-etc-opt-ure.diff
+bug573622_impress_boldfont_with_asian_fonts.patch

Reply to: