solenv/gbuild/CppunitTest.mk | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit bd78d4804df9339dd2c39b9d4c2866ba682063c0 Author: Miklos Vajna <[email protected]> AuthorDate: Tue Jan 6 08:39:28 2026 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Feb 27 09:45:16 2026 +0100 gbuild, CppunitTest: document set_non_application_font_use And the same for use_more_fonts MORE_FONTS is part of the default build type and Linux distro people typically disable it, but it's not obvious where to document that. This means that 'gb_CppunitTest_set_non_application_font_use' is routinely inside a 'ifneq ($(filter MORE_FONTS,$(BUILD_TYPE)),)' condition, since without 'more fonts', it's hard to avoid font fallbacks. (cherry picked from commit 575c3bb5f08720ba33d322d08acfe80332f99900) Change-Id: I54673c16e067c922fb566961f3e59c3dd7ef1faf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200565 Tested-by: Jenkins CollaboraOffice <[email protected]> Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk index 58ee40e3d008..bbd7852910db 100644 --- a/solenv/gbuild/CppunitTest.mk +++ b/solenv/gbuild/CppunitTest.mk @@ -402,11 +402,16 @@ $(call gb_CppunitTest_get_target,$(1)) : $(call gb_Executable_get_target,$(2)) endef # One of allow, deny, abort: +# Controls use of non-bundled fonts. Set to 'abort' to detect when a test in the suite would use a +# non-bundled font (a good practice). Default is to neither deny nor abort. define gb_CppunitTest_set_non_application_font_use $(call gb_CppunitTest_get_target,$(1)) : NON_APPLICATION_FONT_USE += $(2) endef +# This test suite uses the fonts available on the "more fonts" build type: +# 1) only run the test once those are packaged already +# 2) don't use fonts which are "non-application" (not part of the installation set) define gb_CppunitTest_use_more_fonts ifneq ($(filter MORE_FONTS,$(BUILD_TYPE)),) $(call gb_CppunitTest_get_target,$(1)) : \
