solenv/gbuild/CppunitTest.mk |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 575c3bb5f08720ba33d322d08acfe80332f99900
Author:     Miklos Vajna <[email protected]>
AuthorDate: Tue Jan 6 08:39:28 2026 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Tue Jan 6 12:32:20 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.
    
    Change-Id: I54673c16e067c922fb566961f3e59c3dd7ef1faf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196591
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins

diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 5b4a85e27b67..daf00aec2164 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -409,11 +409,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)) : \

Reply via email to