summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-07-17 17:21:34 +0300
committerخالد حسني <khaled@libreoffice.org>2023-07-23 06:02:43 +0200
commit9d9e3b439883c3c315501f56bb613e080863db64 (patch)
treed64cfa9de37459543f07e6d7753bcd0004435592 /vcl/source/font
parent4b743de97fc133623e46827869c4ea3eb845ad47 (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.cxx2
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;
}