[cairo-commit] util/cairo-script

Chris Wilson ickle at kemper.freedesktop.org
Sat Jun 6 12:11:10 PDT 2009


 util/cairo-script/cairo-script-operators.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 16eb160c7794ad34c17c5b12ec586d956baf9831
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Jun 6 20:09:15 2009 +0100

    [script] Enable compilation without fontconfig
    
    Some insane people actually try compiling cairo with freetype and without
    fontconfig...

diff --git a/util/cairo-script/cairo-script-operators.c b/util/cairo-script/cairo-script-operators.c
index b8ff711..5166665 100644
--- a/util/cairo-script/cairo-script-operators.c
+++ b/util/cairo-script/cairo-script-operators.c
@@ -1621,6 +1621,7 @@ _ft_create_for_pattern (csi_t *ctx,
 			csi_string_t *string,
 			cairo_font_face_t **font_face_out)
 {
+#if CAIRO_HAS_FC_FONT
     csi_blob_t tmpl;
     struct _ft_face_data *data;
     csi_list_t *link;
@@ -1666,6 +1667,11 @@ _ft_create_for_pattern (csi_t *ctx,
     data->font_face = font_face;
     *font_face_out = font_face;
     return CSI_STATUS_SUCCESS;
+#else
+    if (--string->base.ref == 0)
+	csi_string_free (ctx, string);
+    return CSI_INT_STATUS_UNSUPPORTED;
+#endif
 }
 
 static csi_status_t


More information about the cairo-commit mailing list