Created attachment 58589 [details] editing mode Problem description: Steps to reproduce: 1. Create a new presentation in Impress 2. Type in a Chinese character. 3. Bold the Chinese character. 4. F5(presentation) Current behavior: The bold Chinese character is not the same as it shows in editing mode. Expected behavior: It should be the same as what it looks like in editing mode. Platform (if different from the browser): Ubuntu 10.04.4 LTS
Created attachment 58590 [details] Presentation
*** Bug 47509 has been marked as a duplicate of this bug. ***
Yes, I reproduce the issue in master still. I find the problem should be located in file: /core/canvas/source/cairo/cairo_textlayout.cxx:608 //faux bold if (rSysFontData.bFakeBold) { double bold_dx = 0.5 * sqrt( 0.7 * aFont.GetHeight() ); int total_steps = 2 * ((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_show_glyphs(pSCairo.get(), &cairo_glyphs[0], cairo_glyphs.size()); } OSL_TRACE(":cairocanvas::TextLayout::draw(S,O,p,v,r): FAKEBOLD - dx:%d", (int) bold_dx); } yes, that's cause the bold in Asian font so ugly.
Created attachment 68779 [details] Improve the faux bold in cairo canvas, to make the bold font better. Simple patch to adjust & improve the "faux bold" in cairo canvas.
Created attachment 68780 [details] without the patch
Created attachment 68781 [details] with the patch
Created attachment 68782 [details] with the patch Sorry for above...
Flex Liu committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b6aa58c4d8af8b960b085646d97f73c912503a96 Resolves: fdo#47432 Improve the "faux bold" in cairo canvas The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 34675 has been marked as a duplicate of this bug. ***
Flex Liu committed a patch related to this issue. It has been pushed to "libreoffice-3-6": http://cgit.freedesktop.org/libreoffice/core/commit/?id=cad7a5814775adf458f8a490700fa5ef6b8f8638&g=libreoffice-3-6 Resolves: fdo#47432 Improve the "faux bold" in cairo canvas It will be available in LibreOffice 3.6.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.