summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-11 18:06:31 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-11 18:06:31 +0200
commitd97a7ebc962c19b26e83262e097bd5c97c2a7eb3 (patch)
tree1d6a2a0f56eab04177192ac344ac537647783bac
parente4bafd2f482d818937936c4e40be8af86b5d2b89 (diff)
Temporary tweak of glyph vertical positioning
Change-Id: I2a6afca473e36e240f8d2b3f7da3447be20e2294
-rw-r--r--vcl/win/gdi/winlayout.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index afab6f760dce..134be9fcedeb 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -449,7 +449,8 @@ bool WinFontInstance::AddChunkOfGlyphs(bool bRealGlyphIndices, int nGlyphIndex,
DWRITE_FONT_METRICS aFontMetrics;
pTxt->GetFontFace()->GetMetrics(&aFontMetrics);
aChunk.mnAscent = aFontMetrics.ascent * pTxt->GetEmHeight() / aFontMetrics.designUnitsPerEm;
- aChunk.mnAscent += -bounds.Top();
+ // FIXME: Temporarily commented out, this positions glyphs vertically a bit better. But far from correctly.
+ // aChunk.mnAscent += -bounds.Top();
aChunk.mnHeight = bounds.GetHeight();
/*
DWRITE_FONT_METRICS aFontMetrics;