summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-05-29 11:01:56 +0300
committerخالد حسني <khaled@libreoffice.org>2023-05-29 16:13:16 +0200
commitab1985d0b39e8bcc976543b9700e04610f434423 (patch)
tree56ea12912c15cee5d7613791ecd8109f7ab8d1e4 /vcl/quartz
parentb20eb3367436de4fb189dc82d14412539c02d30c (diff)
tdf#149297: Fix Y position of vertical glyphs on macOS
Remove the Y position offset that became redundant and now double shifts the glyphs after: commit dd0d0b44fd1c6c0292d7b2eb3f5cf2baa21e4481 Author: Mark Hung <marklh9@gmail.com> Date: Sun May 2 15:12:46 2021 +0800 vcl: adjust LayoutText() for vertical writing. Change-Id: Iac7abfa69acfe75860d05800f446c25ed622bb95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152366 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salgdi.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 0793c15dd4ab..522ccb2b3add 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -346,16 +346,10 @@ void AquaGraphicsBackend::drawTextLayout(const GenericSalLayout& rLayout, bool b
if (rFont.mfFontRotation)
{
if (pGlyph->IsVertical())
- {
bUprightGlyph = true;
- // Adjust the position of upright (vertical) glyphs.
- aGCPos.y -= CTFontGetAscent(pCTFont) - CTFontGetDescent(pCTFont);
- }
else
- {
// Transform the position of rotated glyphs.
aGCPos = CGPointApplyAffineTransform(aGCPos, aRotMatrix);
- }
}
aGlyphIds.push_back(pGlyph->glyphId());