summaryrefslogtreecommitdiff
path: root/vcl/inc/generic/glyphcache.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/generic/glyphcache.hxx')
-rw-r--r--vcl/inc/generic/glyphcache.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/generic/glyphcache.hxx b/vcl/inc/generic/glyphcache.hxx
index 2225971673e1..cb4ffceaef0f 100644
--- a/vcl/inc/generic/glyphcache.hxx
+++ b/vcl/inc/generic/glyphcache.hxx
@@ -319,6 +319,7 @@ private:
SAL_DLLPRIVATE ServerFontLayout& operator=( const ServerFontLayout& );
bool bUseHarfBuzz;
+ long mnTextWidth;
public:
ServerFontLayout( ServerFont& );
@@ -328,6 +329,10 @@ public:
virtual void DrawText( SalGraphics& ) const;
virtual long GetTextWidth() const;
ServerFont& GetServerFont() const { return mrServerFont; }
+
+ // used by layout engine
+ void SetWidth( long nWidth ) { mnTextWidth = nWidth; }
+ long GetWidth() const { return mnTextWidth; }
};
// =======================================================================