[Libreoffice-commits] core.git: Branch 'private/tml/fixwintext' - vcl/win

Tor Lillqvist tml at collabora.com
Fri Mar 11 16:58:36 UTC 2016


 vcl/win/gdi/winlayout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3cc72625da8429b342be2e827604ea65962fcd2e
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Mar 11 18:58:02 2016 +0200

    Further tweak, getting much closer to correct
    
    Change-Id: I57ada8873b24a911b9f24ca268f876193ebe25ed

diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 0881521..8ae8926 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -540,7 +540,7 @@ bool WinFontInstance::AddChunkOfGlyphs(bool bRealGlyphIndices, int nGlyphIndex,
         return false;
     }
 
-    D2D1_POINT_2F baseline = { nX, nY + aChunk.mnAscent - bounds.Top() };
+    D2D1_POINT_2F baseline = { nX, nY - bounds.Top() };
     DWRITE_GLYPH_RUN glyphs = {
         pTxt->GetFontFace(),
         pTxt->GetEmHeight(),


More information about the Libreoffice-commits mailing list