office-gobmx/vcl/CppunitTest_vcl_font.mk
Chris Sherlock a22047f148 vcl: test getting glyph boundary rect from LogicalFontInstance
MacOS produces a slightly different glyph height.

Quoting from Khaled in dev IRC:

"Currently GetGlyphBoundRect() calls different platform-specific
implementations on each platform, so even with the same font it is
possible to get some difference. So my suggestion is to use a large font
size and allow for some fuzziness".

Consequently I'm using a 110pt font, and taking into account some
fuzziness.

Change-Id: I0dace6bfa0d1f4e6f3b8852e957d2d518d37795b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143322
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-11-27 10:40:17 +01:00

64 lines
1.5 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,vcl_font))
$(eval $(call gb_CppunitTest_set_include,vcl_font,\
$$(INCLUDE) \
-I$(SRCDIR)/vcl/inc \
))
$(eval $(call gb_CppunitTest_add_exception_objects,vcl_font, \
vcl/qa/cppunit/font \
vcl/qa/cppunit/physicalfontface \
vcl/qa/cppunit/physicalfontfacecollection \
vcl/qa/cppunit/physicalfontfamily \
vcl/qa/cppunit/physicalfontcollection \
vcl/qa/cppunit/logicalfontinstance \
))
$(eval $(call gb_CppunitTest_use_externals,vcl_font,\
boost_headers \
harfbuzz \
graphite \
))
$(eval $(call gb_CppunitTest_use_libraries,vcl_font, \
comphelper \
cppu \
cppuhelper \
sal \
salhelper \
svt \
test \
tl \
tk \
unotest \
utl \
vcl \
))
$(eval $(call gb_CppunitTest_use_sdk_api,vcl_font))
$(eval $(call gb_CppunitTest_use_ure,vcl_font))
$(eval $(call gb_CppunitTest_use_vcl,vcl_font))
$(eval $(call gb_CppunitTest_use_components,vcl_font,\
configmgr/source/configmgr \
i18npool/util/i18npool \
ucb/source/core/ucb1 \
))
$(eval $(call gb_CppunitTest_use_configuration,vcl_font))
$(eval $(call gb_CppunitTest_use_more_fonts,vcl_font))
$(eval $(call gb_CppunitTest_set_non_application_font_use,vcl_font,abort))
# vim: set noet sw=4 ts=4: