diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-07-17 17:21:34 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-07-23 06:02:43 +0200 |
commit | 9d9e3b439883c3c315501f56bb613e080863db64 (patch) | |
tree | d64cfa9de37459543f07e6d7753bcd0004435592 /vcl/source/font | |
parent | 4b743de97fc133623e46827869c4ea3eb845ad47 (diff) |
tdf#156211: Don’t round Kashida width when doing subpixel positioning
This improves our calculated positions for the inserted Kashida glyphs,
which has the side effect of fixing this issue, and generally improves
Kashida positions so that there is less rounding errors and visible gaps
between them.
Change-Id: If60126e77e59c2c1246298e2993609547d38c79c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154550
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/source/font')
-rw-r--r-- | vcl/source/font/LogicalFontInstance.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/font/LogicalFontInstance.cxx b/vcl/source/font/LogicalFontInstance.cxx index 965fc91591c1..ec9740fd8812 100644 --- a/vcl/source/font/LogicalFontInstance.cxx +++ b/vcl/source/font/LogicalFontInstance.cxx @@ -106,7 +106,7 @@ double LogicalFontInstance::GetKashidaWidth() const { sal_GlyphId nGlyph = GetGlyphIndex(0x0640); if (nGlyph) - return std::ceil(GetGlyphWidth(nGlyph)); + return GetGlyphWidth(nGlyph); return 0; } |