changeset 28483:98889de398dd stable

* ft-text-renderer.cc: Allow build to succeed if HAVE_FONTCONFIG is undefined.
author John W. Eaton <jwe@octave.org>
date Tue, 16 Jun 2020 10:12:00 -0400
parents 1be719d8b375
children 6dd150e3c785 36c6bd835ec9
files libinterp/corefcn/ft-text-renderer.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/ft-text-renderer.cc	Mon Jun 15 16:43:09 2020 -0400
+++ b/libinterp/corefcn/ft-text-renderer.cc	Tue Jun 16 10:12:00 2020 -0400
@@ -198,6 +198,7 @@
 
       if (font_map.isempty ())
         {
+#if defined (HAVE_FONTCONFIG)
           FcConfig *config = FcConfigGetCurrent();
           FcPattern *pat = FcPatternCreate ();
           FcObjectSet *os = FcObjectSetBuild (FC_FAMILY, FC_SLANT, FC_WEIGHT,
@@ -269,6 +270,7 @@
               if (fs)
                 FcFontSetDestroy (fs);
             }
+#endif
         }
 
       return font_map;