summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2023-01-18 19:17:43 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2023-01-18 19:17:43 -0500
commitc1f79c998b36d95778e433f396e19eff7402cf7a (patch)
tree8ba6202c0c129bc70906c5851b519076b12bdca0
parent28b2983e684dbbfd5fa3636997fa671acb3703eb (diff)
downloadxorg-lib-libXft-c1f79c998b36d95778e433f396e19eff7402cf7a.tar.gz
issue 18: Problems with rotated text (monospace font only)
Updates for version 2.3.5 included improvements for font rotation. One of the minus-signs was dropped, causing a change to the orientation of strings. Restore the minus-sign. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/xftglyphs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xftglyphs.c b/src/xftglyphs.c
index e6f569f..24a2e2e 100644
--- a/src/xftglyphs.c
+++ b/src/xftglyphs.c
@@ -840,7 +840,7 @@ XftFontLoadGlyphs (Display *dpy,
}
FT_Vector_Transform(&vector, &font->info.matrix);
xftg->metrics.xOff = (short)(TRUNC(ROUND(vector.x)));
- xftg->metrics.yOff = (short)(TRUNC(ROUND(vector.y)));
+ xftg->metrics.yOff = (short)(-TRUNC(ROUND(vector.y)));
}
else
{