abort more writer layout tests if a font isn't found
Change-Id: I4d94b60531505f2d5a493b4c51f4c9110d3a4517 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133633 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
172270a8f0
commit
bd1f61dff6
3 changed files with 8 additions and 3 deletions
|
@ -71,6 +71,11 @@ $(eval $(call gb_CppunitTest_use_uiconfigs,sw_core_layout, \
|
|||
svx \
|
||||
))
|
||||
|
||||
# assert if font/glyph fallback occurs
|
||||
$(call gb_CppunitTest_get_target,sw_core_layout): \
|
||||
EXTRA_ENV_VARS := \
|
||||
SAL_ABORT_ON_NON_APPLICATION_FONT_USE=1
|
||||
|
||||
$(eval $(call gb_CppunitTest_use_more_fonts,sw_core_layout))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
|
@ -82,7 +82,7 @@ $(eval $(call gb_CppunitTest_use_uiconfigs,sw_layoutwriter$(1), \
|
|||
$(call gb_CppunitTest_get_target,sw_layoutwriter$(1)): \
|
||||
$(call gb_Library_get_target,textconv_dict)
|
||||
|
||||
# reset the LD_LIBRARY_PATH for spawned GPG processes
|
||||
# assert if font/glyph fallback occurs
|
||||
$(call gb_CppunitTest_get_target,sw_layoutwriter$(1)): \
|
||||
EXTRA_ENV_VARS := \
|
||||
SAL_ABORT_ON_NON_APPLICATION_FONT_USE=1
|
||||
|
|
|
@ -1175,8 +1175,6 @@ void PrintFontManager::Substitute(vcl::font::FontSelectPattern &rPattern, OUStri
|
|||
static bool bAbortOnFontSubstitute = getenv("SAL_ABORT_ON_NON_APPLICATION_FONT_USE") != nullptr;
|
||||
if (bAbortOnFontSubstitute && rPattern.maTargetName != rPattern.maSearchName)
|
||||
{
|
||||
SAL_INFO("vcl.fonts", "PrintFontManager::Substitute: missing font: '" << rPattern.maTargetName <<
|
||||
"' try: " << rPattern.maSearchName << " instead");
|
||||
if (bMissingJustBullet)
|
||||
{
|
||||
assert(rPattern.maTargetName == "Amiri Quran" || rPattern.maTargetName == "David CLM" ||
|
||||
|
@ -1187,6 +1185,8 @@ void PrintFontManager::Substitute(vcl::font::FontSelectPattern &rPattern, OUStri
|
|||
// ImplFontMetricData::ImplInitTextLineSize
|
||||
return;
|
||||
}
|
||||
SAL_WARN("vcl.fonts", "PrintFontManager::Substitute: missing font: '" << rPattern.maTargetName <<
|
||||
"' try: " << rPattern.maSearchName << " instead");
|
||||
std::abort();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue