diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 12:03:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 21:29:45 +0100 |
commit | ca1ed645036cab9ba5e94a9d2e22ef8110e852e0 (patch) | |
tree | 4f5978e837111a395f7f974ee65e73ea270b78a2 /include/vcl | |
parent | d416fa9a212e0421a7c925507ddee07132f3cab3 (diff) |
use digit width instead of char width
its the same across backends
Change-Id: I37c83cbf1139babcd014c7cfdee06a13bea845c7
Reviewed-on: https://gerrit.libreoffice.org/51423
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/outdev.hxx | 1 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index e2cec1c195dd..4b766ccd797a 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1138,6 +1138,7 @@ public: */ long GetTextHeight() const; float approximate_char_width() const; + float approximate_digit_width() const; void DrawTextArray( const Point& rStartPt, const OUString& rStr, const long* pDXAry, diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 98c53f882e2f..eb1f8501cf04 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -42,7 +42,7 @@ public: } virtual void set_size_request(int nWidth, int nHeight) = 0; virtual Size get_preferred_size() const = 0; - virtual float get_approximate_char_width() const = 0; + virtual float get_approximate_digit_width() const = 0; virtual int get_text_height() const = 0; virtual Size get_pixel_size(const OUString& rText) const = 0; virtual OString get_buildable_name() const = 0; |