summaryrefslogtreecommitdiff
path: root/vcl/generic/glyphs
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock@collabora.com>2015-01-28 17:49:05 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2015-01-30 03:05:32 +0000
commit8e33c9be8780806359e3bbb8c7c5788169f4d2e1 (patch)
treec943820f95c97143a41c80241aa4f1624fb63ab3 /vcl/generic/glyphs
parente31eb6484a149f89cd374e414633bdf95c10efad (diff)
vcl: add GenericSalLayout::GetTextRect()
I have extended GlyphItem to also record the original and new height, along with the y offset. Change-Id: I1e9646a8f0d844951d5533d035d9a16dbc8e257c Reviewed-on: https://gerrit.libreoffice.org/14216 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/generic/glyphs')
-rw-r--r--vcl/generic/glyphs/gcach_layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/glyphs/gcach_layout.cxx b/vcl/generic/glyphs/gcach_layout.cxx
index ae4a2f7d402e..a6f86ee65166 100644
--- a/vcl/generic/glyphs/gcach_layout.cxx
+++ b/vcl/generic/glyphs/gcach_layout.cxx
@@ -514,7 +514,7 @@ bool HbLayoutEngine::Layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
int32_t nYAdvance = pHbPositions[i].y_advance >> 6;
Point aNewPos = Point(aCurrPos.X() + nXOffset, -(aCurrPos.Y() + nYOffset));
- const GlyphItem aGI(nCharPos, nGlyphIndex, aNewPos, nGlyphFlags, nXAdvance, nXOffset);
+ const GlyphItem aGI(nCharPos, nGlyphIndex, aNewPos, nGlyphFlags, nXAdvance, nXOffset, nYAdvance, nYOffset);
rLayout.AppendGlyph(aGI);
aCurrPos.X() += nXAdvance;