diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-30 09:51:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-31 12:10:52 +0100 |
commit | 11b15571475414ef853e21a6c96afa2ac81f848f (patch) | |
tree | e32da625489c121001e8436fb693b2a25a1e1b6e /include/editeng/svxfont.hxx | |
parent | ef085d09e0c019f78a3d35f759c8fe567856b615 (diff) |
convert KernArray from sal_Int32 to double
which allows us to eliminate a bunch of rounding at various layers, and
consequently maintain a lot more precision
Change-Id: I911dedd7c041c1d67396c082e5695346ea689acb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175814
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/svxfont.hxx')
-rw-r--r-- | include/editeng/svxfont.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/editeng/svxfont.hxx b/include/editeng/svxfont.hxx index 9061ffe398d2..a696e6c78084 100644 --- a/include/editeng/svxfont.hxx +++ b/include/editeng/svxfont.hxx @@ -26,6 +26,7 @@ #include <editeng/svxenum.hxx> #include <tools/long.hxx> #include <vcl/font.hxx> +#include <vcl/kernarray.hxx> #include <editeng/editengdllapi.h> #include <tools/poly.hxx> @@ -33,7 +34,6 @@ // See i#1526# for full explanation #define SMALL_CAPS_PERCENTAGE 80 -class KernArray; class SvxDoCapitals; class OutputDevice; class Printer; @@ -82,7 +82,7 @@ public: Size GetCapitalSize( const OutputDevice *pOut, const OUString &rTxt, KernArray* pDXAry, const sal_Int32 nIdx, const sal_Int32 nLen) const; void DrawCapital( OutputDevice *pOut, const Point &rPos, const OUString &rTxt, - std::span<const sal_Int32> pDXArray, + KernArraySpan pDXArray, std::span<const sal_Bool> pKashidaArray, const sal_Int32 nIdx, const sal_Int32 nLen ) const; @@ -96,7 +96,7 @@ public: void QuickDrawText( OutputDevice *pOut, const Point &rPos, const OUString &rTxt, const sal_Int32 nIdx = 0, const sal_Int32 nLen = SAL_MAX_INT32, - std::span<const sal_Int32> pDXArray = {}, + KernArraySpan pDXArray = {}, std::span<const sal_Bool> pKashidaArray = {} ) const; Size QuickGetTextSize( const OutputDevice *pOut, const OUString &rTxt, |