office-gobmx/sw/CppunitTest_sw_core_txtnode.mk
Miklos Vajna a8d26a0bb4 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 89e5b431d4 (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>
2020-04-07 09:04:09 +02:00

73 lines
1.8 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,sw_core_txtnode))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_core_txtnode))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_core_txtnode, \
sw/qa/core/txtnode/txtnode \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_core_txtnode, \
comphelper \
cppu \
cppuhelper \
sal \
sfx \
svxcore \
sw \
test \
unotest \
utl \
vcl \
svt \
tl \
svl \
))
$(eval $(call gb_CppunitTest_use_externals,sw_core_txtnode,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_core_txtnode,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
-I$(SRCDIR)/sw/qa/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_core_txtnode,\
udkapi \
offapi \
oovbaapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_core_txtnode))
$(eval $(call gb_CppunitTest_use_vcl,sw_core_txtnode))
$(eval $(call gb_CppunitTest_use_rdb,sw_core_txtnode,services))
$(eval $(call gb_CppunitTest_use_custom_headers,sw_core_txtnode,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_core_txtnode))
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_core_txtnode, \
modules/swriter \
))
$(eval $(call gb_CppunitTest_use_more_fonts,sw_core_txtnode))
# vim: set noet sw=4 ts=4: