1 /* cairo - a vector graphics library with display and print output
2  *
3  * Copyright © 2003 University of Southern California
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it either under the terms of the GNU Lesser General Public
7  * License version 2.1 as published by the Free Software Foundation
8  * (the "LGPL") or, at your option, under the terms of the Mozilla
9  * Public License Version 1.1 (the "MPL"). If you do not alter this
10  * notice, a recipient may use your version of this file under either
11  * the MPL or the LGPL.
12  *
13  * You should have received a copy of the LGPL along with this library
14  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  * You should have received a copy of the MPL along with this library
17  * in the file COPYING-MPL-1.1
18  *
19  * The contents of this file are subject to the Mozilla Public License
20  * Version 1.1 (the "License"); you may not use this file except in
21  * compliance with the License. You may obtain a copy of the License at
22  * http://www.mozilla.org/MPL/
23  *
24  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
25  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
26  * the specific language governing rights and limitations.
27  *
28  * The Original Code is the cairo graphics library.
29  *
30  * The Initial Developer of the Original Code is University of Southern
31  * California.
32  *
33  * Contributor(s):
34  *	Carl D. Worth <cworth@cworth.org>
35  */
36 
37 #ifndef CAIRO_FEATURES_H
38 #define CAIRO_FEATURES_H
39 
40 #include "cairo-platform.h"
41 
42 #ifdef  __cplusplus
43 # define CAIRO_BEGIN_DECLS  extern "C" {
44 # define CAIRO_END_DECLS    }
45 #else
46 # define CAIRO_BEGIN_DECLS
47 # define CAIRO_END_DECLS
48 #endif
49 
50 #ifndef cairo_public
51 # define cairo_public
52 #endif
53 
54 #ifdef MOZ_PDF_PRINTING
55 #define CAIRO_HAS_PDF_SURFACE 1
56 #endif
57 
58 #ifdef MOZ_X11
59 #define CAIRO_HAS_PS_SURFACE 1
60 #define CAIRO_HAS_XLIB_XRENDER_SURFACE 0
61 #define CAIRO_HAS_XLIB_SURFACE 1
62 #endif
63 
64 #if defined(MOZ_WIDGET_COCOA) || defined(MOZ_WIDGET_UIKIT)
65 #define CAIRO_HAS_QUARTZ_SURFACE 1
66 #define CAIRO_HAS_QUARTZ_IMAGE_SURFACE 1
67 #define CAIRO_HAS_QUARTZ_FONT 1
68 #endif
69 
70 #ifdef XP_WIN
71 #define CAIRO_HAS_DWRITE_FONT 1
72 #define CAIRO_HAS_WIN32_FONT 1
73 #define CAIRO_HAS_WIN32_SURFACE 1
74 #endif
75 
76 #if (defined(MOZ_TREE_FREETYPE) && !defined(XP_WIN)) || defined(MOZ_HAVE_FREETYPE2)
77 #define CAIRO_HAS_FT_FONT 1
78 #endif
79 
80 #define CAIRO_HAS_TEE_SURFACE 1
81 
82 #ifdef USE_FC_FREETYPE
83 #define CAIRO_HAS_FC_FONT 1
84 #endif
85 
86 #endif
87