diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-04-06 21:02:30 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-04-07 09:04:09 +0200 |
commit | a8d26a0bb40c101394ded8061d1b58048153631b (patch) | |
tree | 9618bc67f01889e28582897bb1ac76ecc0a9ad6c /sw/Module_sw.mk | |
parent | 5366cadd6cda9b3c7b4b549a0c9b8c895ea47843 (diff) |
tdf#131490 sw btlr: fix handling of vertical text
Latin text goes from l->r, then t->b. If we rotate to the right, then we
get t->b, then r->l. Vertical text in vcl's Font means the individual
glyphs are painted in a way that looks "non-rotated" in the tbrl case.
btlr is not symmetric to this: if you rotate to the left, then Latin and
vertical text is handled the same way, i.e. there is no compensation at
a glyph level.
This means that as far as vcl is concerned, the Font's vertical flag has
to be true in the tbrl case, but no in the btlr one. Fix
SwFont::SetVertical() to do this, which means that rotating at a
character level or using the btlr text direction will result in the same
rendering for a one-liner text.
Regression from commit 89e5b431d468745da3a1eff14d48296107b9101b (sw btlr
writing mode: implement DOC filter, 2019-03-28).
Change-Id: I2619c77a3b2597dbf9feab6c7042e8d8c7454197
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91780
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/Module_sw.mk')
-rw-r--r-- | sw/Module_sw.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/Module_sw.mk b/sw/Module_sw.mk index 88c14c2fa51b..980f60d7a615 100644 --- a/sw/Module_sw.mk +++ b/sw/Module_sw.mk @@ -111,6 +111,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sw,\ CppunitTest_sw_core_accessibilitycheck \ CppunitTest_sw_core_layout \ CppunitTest_sw_core_frmedt \ + CppunitTest_sw_core_txtnode \ )) ifneq ($(DISABLE_GUI),TRUE) |