summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index d868ff701049..b7cc4207dff1 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -20,6 +20,7 @@
#include <unx/cairotextrender.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
+#include <unotools/configmgr.hxx>
#include <vcl/settings.hxx>
#include <vcl/sysdata.hxx>
#include <vcl/svapp.hxx>
@@ -392,7 +393,8 @@ void CairoTextRender::GetDevFontList( PhysicalFontCollection* pFontCollection )
rGC.AnnounceFonts( pFontCollection );
// register platform specific font substitutions if available
- SalGenericInstance::RegisterFontSubstitutors( pFontCollection );
+ if (!utl::ConfigManager::IsAvoidConfig())
+ SalGenericInstance::RegisterFontSubstitutors( pFontCollection );
}
void FontConfigFontOptions::cairo_font_options_substitute(FcPattern* pPattern)