summaryrefslogtreecommitdiff
path: root/vcl/inc/sallayout.hxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-04-27 14:47:29 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-04-29 12:45:39 +0200
commit9cd7f7aded9ba171bf91a8223e6e8a868aedd792 (patch)
tree8278a59d00c192e6627cc8dc81128ce16d00d714 /vcl/inc/sallayout.hxx
parentfc893070c9255637950ac9844c1ad519b0115bd8 (diff)
[harfbuzz] Fix text width calculation
GenericSalLayout::GetTextWidth() uses GlyphItem's mnNewWidth when calculating text width, and though this seems logical (it is after all the actual with the glyph is contributing to the all over advance width), it results in shorter width calculation whenever glyph width adjustment is involved, no idea why! The #ifdef is there so that the ICU code path is not changed in anyway, but all of this should be merged into GenericSalLayout when ICU is gone. Change-Id: I7cbde1675b78e87c142513eb52a13ee5fdc60617
Diffstat (limited to 'vcl/inc/sallayout.hxx')
-rw-r--r--vcl/inc/sallayout.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index ad6cd9479ab5..6f8a49d82a59 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -367,6 +367,8 @@ protected:
bool GetCharWidths( sal_Int32* pCharWidths ) const;
+ GlyphVector GetGlyphItems() const { return m_GlyphItems; }
+
private:
GlyphVector m_GlyphItems;
mutable Point maBasePoint;