cairo 1.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

@@ -0,0 +1,192 @@
1
+ /* -*- c-file-style: "gnu"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Ruby Cairo Binding
4
+ *
5
+ * $Author: kou $
6
+ * $Date: 2007/03/06 12:17:34 $
7
+ *
8
+ * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
9
+ * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
10
+ *
11
+ * This file is made available under the same terms as Ruby
12
+ *
13
+ */
14
+
15
+ #include "rb_cairo.h"
16
+
17
+ static VALUE rb_eCairo_InvalidRestoreError;
18
+ static VALUE rb_eCairo_InvalidPopGroupError;
19
+ static VALUE rb_eCairo_NoCurrentPointError;
20
+ static VALUE rb_eCairo_InvalidMatrixError;
21
+ static VALUE rb_eCairo_InvalidStatusError;
22
+ static VALUE rb_eCairo_NullPointerError;
23
+ static VALUE rb_eCairo_InvalidStringError;
24
+ static VALUE rb_eCairo_InvalidPathDataError;
25
+ static VALUE rb_eCairo_ReadError;
26
+ static VALUE rb_eCairo_WriteError;
27
+ static VALUE rb_eCairo_SurfaceFinishedError;
28
+ static VALUE rb_eCairo_SurfaceTypeMismatchError;
29
+ static VALUE rb_eCairo_PatternTypeMismatchError;
30
+ static VALUE rb_eCairo_InvalidContentError;
31
+ static VALUE rb_eCairo_InvalidFormatError;
32
+ static VALUE rb_eCairo_InvalidVisualError;
33
+ static VALUE rb_eCairo_FileNotFoundError;
34
+ static VALUE rb_eCairo_InvalidDashError;
35
+ static VALUE rb_eCairo_InvalidDscCommentError;
36
+ #if CAIRO_CHECK_VERSION(1, 3, 0)
37
+ static VALUE rb_eCairo_InvalidIndexError;
38
+ static VALUE rb_eCairo_ClipNotRepresentableError;
39
+ #endif
40
+
41
+ void
42
+ rb_cairo_check_status (cairo_status_t status)
43
+ {
44
+ const char *string = cairo_status_to_string (status);
45
+
46
+ switch (status)
47
+ {
48
+ case CAIRO_STATUS_SUCCESS:
49
+ break;
50
+ case CAIRO_STATUS_NO_MEMORY:
51
+ rb_raise (rb_eNoMemError, string);
52
+ break;
53
+ case CAIRO_STATUS_INVALID_RESTORE:
54
+ rb_raise (rb_eCairo_InvalidRestoreError, string);
55
+ break;
56
+ case CAIRO_STATUS_INVALID_POP_GROUP:
57
+ rb_raise (rb_eCairo_InvalidPopGroupError, string);
58
+ break;
59
+ case CAIRO_STATUS_NO_CURRENT_POINT:
60
+ rb_raise (rb_eCairo_NoCurrentPointError, string);
61
+ break;
62
+ case CAIRO_STATUS_INVALID_MATRIX:
63
+ rb_raise (rb_eCairo_InvalidMatrixError, string);
64
+ break;
65
+ case CAIRO_STATUS_INVALID_STATUS:
66
+ rb_raise (rb_eCairo_InvalidStatusError, string);
67
+ break;
68
+ case CAIRO_STATUS_NULL_POINTER:
69
+ rb_raise (rb_eCairo_NullPointerError, string);
70
+ break;
71
+ case CAIRO_STATUS_INVALID_STRING:
72
+ rb_raise (rb_eCairo_InvalidStringError, string);
73
+ break;
74
+ case CAIRO_STATUS_INVALID_PATH_DATA:
75
+ rb_raise (rb_eCairo_InvalidPathDataError, string);
76
+ break;
77
+ case CAIRO_STATUS_READ_ERROR:
78
+ rb_raise (rb_eCairo_ReadError, string);
79
+ break;
80
+ case CAIRO_STATUS_WRITE_ERROR:
81
+ rb_raise (rb_eCairo_WriteError, string);
82
+ break;
83
+ case CAIRO_STATUS_SURFACE_FINISHED:
84
+ rb_raise (rb_eCairo_SurfaceFinishedError, string);
85
+ break;
86
+ case CAIRO_STATUS_SURFACE_TYPE_MISMATCH:
87
+ rb_raise (rb_eCairo_SurfaceTypeMismatchError, string);
88
+ break;
89
+ case CAIRO_STATUS_PATTERN_TYPE_MISMATCH:
90
+ rb_raise (rb_eCairo_PatternTypeMismatchError, string);
91
+ break;
92
+ case CAIRO_STATUS_INVALID_CONTENT:
93
+ rb_raise (rb_eCairo_InvalidContentError, string);
94
+ break;
95
+ case CAIRO_STATUS_INVALID_FORMAT:
96
+ rb_raise (rb_eCairo_InvalidFormatError, string);
97
+ break;
98
+ case CAIRO_STATUS_INVALID_VISUAL:
99
+ rb_raise (rb_eCairo_InvalidVisualError, string);
100
+ break;
101
+ case CAIRO_STATUS_FILE_NOT_FOUND:
102
+ rb_raise (rb_eCairo_FileNotFoundError, string);
103
+ break;
104
+ case CAIRO_STATUS_INVALID_DASH:
105
+ rb_raise (rb_eCairo_InvalidDashError, string);
106
+ break;
107
+ case CAIRO_STATUS_INVALID_DSC_COMMENT:
108
+ rb_raise (rb_eCairo_InvalidDscCommentError, string);
109
+ break;
110
+ #if CAIRO_CHECK_VERSION(1, 3, 0)
111
+ case CAIRO_STATUS_INVALID_INDEX:
112
+ rb_raise (rb_eCairo_InvalidIndexError, string);
113
+ break;
114
+ case CAIRO_STATUS_CLIP_NOT_REPRESENTABLE:
115
+ rb_raise (rb_eCairo_ClipNotRepresentableError, string);
116
+ break;
117
+ #endif
118
+ }
119
+ }
120
+
121
+ void
122
+ Init_cairo_exception ()
123
+ {
124
+ VALUE rb_eCairo_Error;
125
+ rb_eCairo_Error =
126
+ rb_define_class_under (rb_mCairo, "Error", rb_eStandardError);
127
+ rb_eCairo_InvalidRestoreError =
128
+ rb_define_class_under (rb_mCairo, "InvalidRestoreError",
129
+ rb_eCairo_Error);
130
+ rb_eCairo_InvalidPopGroupError =
131
+ rb_define_class_under (rb_mCairo, "InvalidPopGroupError",
132
+ rb_eCairo_Error);
133
+ rb_eCairo_NoCurrentPointError =
134
+ rb_define_class_under (rb_mCairo, "NoCurrentPointError",
135
+ rb_eCairo_Error);
136
+ rb_eCairo_InvalidMatrixError =
137
+ rb_define_class_under (rb_mCairo, "InvalidMatrixError",
138
+ rb_eArgError);
139
+ rb_eCairo_InvalidStatusError =
140
+ rb_define_class_under (rb_mCairo, "InvalidStatusError",
141
+ rb_eArgError);
142
+ rb_eCairo_NullPointerError =
143
+ rb_define_class_under (rb_mCairo, "NullPointerError",
144
+ rb_eTypeError);
145
+ rb_eCairo_InvalidStringError =
146
+ rb_define_class_under (rb_mCairo, "InvalidStringError",
147
+ rb_eArgError);
148
+ rb_eCairo_InvalidPathDataError =
149
+ rb_define_class_under (rb_mCairo, "InvalidPathDataError",
150
+ rb_eArgError);
151
+ rb_eCairo_ReadError =
152
+ rb_define_class_under (rb_mCairo, "ReadError",
153
+ rb_eIOError);
154
+ rb_eCairo_WriteError =
155
+ rb_define_class_under (rb_mCairo, "WriteError",
156
+ rb_eIOError);
157
+ rb_eCairo_SurfaceFinishedError =
158
+ rb_define_class_under (rb_mCairo, "SurfaceFinishedError",
159
+ rb_eCairo_Error);
160
+ rb_eCairo_SurfaceTypeMismatchError =
161
+ rb_define_class_under (rb_mCairo, "SurfaceTypeMismatchError",
162
+ rb_eTypeError);
163
+ rb_eCairo_PatternTypeMismatchError =
164
+ rb_define_class_under (rb_mCairo, "PatternTypeMismatchError",
165
+ rb_eTypeError);
166
+ rb_eCairo_InvalidContentError =
167
+ rb_define_class_under (rb_mCairo, "InvalidContentError",
168
+ rb_eArgError);
169
+ rb_eCairo_InvalidFormatError =
170
+ rb_define_class_under (rb_mCairo, "InvalidFormatError",
171
+ rb_eArgError);
172
+ rb_eCairo_InvalidVisualError =
173
+ rb_define_class_under (rb_mCairo, "InvalidVisualError",
174
+ rb_eArgError);
175
+ rb_eCairo_FileNotFoundError =
176
+ rb_define_class_under (rb_mCairo, "FileNotFound",
177
+ rb_eCairo_Error);
178
+ rb_eCairo_InvalidDashError =
179
+ rb_define_class_under (rb_mCairo, "InvalidDashError",
180
+ rb_eArgError);
181
+ rb_eCairo_InvalidDscCommentError =
182
+ rb_define_class_under (rb_mCairo, "InvalidDscCommentError",
183
+ rb_eArgError);
184
+ #if CAIRO_CHECK_VERSION(1, 3, 0)
185
+ rb_eCairo_InvalidIndexError =
186
+ rb_define_class_under (rb_mCairo, "InvalidIndexError",
187
+ rb_eArgError);
188
+ rb_eCairo_ClipNotRepresentableError =
189
+ rb_define_class_under (rb_mCairo, "ClipNotRepresentableError",
190
+ rb_eCairo_Error);
191
+ #endif
192
+ }
@@ -0,0 +1,124 @@
1
+ /* -*- c-file-style: "gnu"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Ruby Cairo Binding
4
+ *
5
+ * $Author: kou $
6
+ * $Date: 2007/03/06 12:17:34 $
7
+ *
8
+ * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
9
+ * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
10
+ *
11
+ * This file is made available under the same terms as Ruby
12
+ *
13
+ */
14
+
15
+ #include "rb_cairo.h"
16
+
17
+ VALUE rb_cCairo_FontExtents;
18
+
19
+ #define _SELF(self) (RVAL2CRFONTEXTENTS(self))
20
+
21
+ cairo_font_extents_t *
22
+ rb_cairo_font_extents_from_ruby_object (VALUE obj)
23
+ {
24
+ cairo_font_extents_t *extents;
25
+ if (!RTEST (rb_obj_is_kind_of (obj, rb_cCairo_FontExtents)))
26
+ {
27
+ rb_raise (rb_eTypeError, "not a cairo font extents");
28
+ }
29
+ Data_Get_Struct (obj, cairo_font_extents_t, extents);
30
+ return extents;
31
+ }
32
+
33
+ VALUE
34
+ rb_cairo_font_extents_to_ruby_object (cairo_font_extents_t *extents)
35
+ {
36
+ if (extents)
37
+ {
38
+ cairo_font_extents_t *new_extents = ALLOC (cairo_font_extents_t);
39
+ *new_extents = *extents;
40
+ return Data_Wrap_Struct (rb_cCairo_FontExtents, NULL, -1, new_extents);
41
+ }
42
+ else
43
+ {
44
+ return Qnil;
45
+ }
46
+ }
47
+
48
+ static VALUE
49
+ cr_font_extents_ascent (VALUE self)
50
+ {
51
+ return rb_float_new (_SELF(self)->ascent);
52
+ }
53
+
54
+ static VALUE
55
+ cr_font_extents_descent (VALUE self)
56
+ {
57
+ return rb_float_new (_SELF(self)->descent);
58
+ }
59
+
60
+ static VALUE
61
+ cr_font_extents_height (VALUE self)
62
+ {
63
+ return rb_float_new (_SELF(self)->height);
64
+ }
65
+
66
+ static VALUE
67
+ cr_font_extents_max_x_advance (VALUE self)
68
+ {
69
+ return rb_float_new (_SELF(self)->max_x_advance);
70
+ }
71
+
72
+ static VALUE
73
+ cr_font_extents_max_y_advance (VALUE self)
74
+ {
75
+ return rb_float_new (_SELF(self)->max_y_advance);
76
+ }
77
+
78
+ static VALUE
79
+ cr_font_extents_to_s (VALUE self)
80
+ {
81
+ VALUE ret;
82
+
83
+ ret = rb_str_new2 ("#<");
84
+ rb_str_cat2 (ret, rb_class2name (CLASS_OF (self)));
85
+ rb_str_cat2 (ret, ": ");
86
+ rb_str_cat2 (ret, "ascent=");
87
+ rb_str_concat (ret, rb_inspect (cr_font_extents_ascent (self)));
88
+ rb_str_cat2 (ret, ", ");
89
+ rb_str_cat2 (ret, "descent=");
90
+ rb_str_concat (ret, rb_inspect (cr_font_extents_descent (self)));
91
+ rb_str_cat2 (ret, ", ");
92
+ rb_str_cat2 (ret, "height=");
93
+ rb_str_concat (ret, rb_inspect (cr_font_extents_height (self)));
94
+ rb_str_cat2 (ret, ", ");
95
+ rb_str_cat2 (ret, "max_x_advance=");
96
+ rb_str_concat (ret, rb_inspect (cr_font_extents_max_x_advance (self)));
97
+ rb_str_cat2 (ret, ", ");
98
+ rb_str_cat2 (ret, "max_y_advance=");
99
+ rb_str_concat (ret, rb_inspect (cr_font_extents_max_y_advance (self)));
100
+ rb_str_cat2 (ret, ">");
101
+
102
+ return ret;
103
+ }
104
+
105
+
106
+ void
107
+ Init_cairo_font_extents (void)
108
+ {
109
+ rb_cCairo_FontExtents =
110
+ rb_define_class_under (rb_mCairo, "FontExtents", rb_cObject);
111
+
112
+ rb_define_method (rb_cCairo_FontExtents, "ascent",
113
+ cr_font_extents_ascent, 0);
114
+ rb_define_method (rb_cCairo_FontExtents, "descent",
115
+ cr_font_extents_descent, 0);
116
+ rb_define_method (rb_cCairo_FontExtents, "height",
117
+ cr_font_extents_height, 0);
118
+ rb_define_method (rb_cCairo_FontExtents, "max_x_advance",
119
+ cr_font_extents_max_x_advance, 0);
120
+ rb_define_method (rb_cCairo_FontExtents, "max_y_advance",
121
+ cr_font_extents_max_y_advance, 0);
122
+
123
+ rb_define_method (rb_cCairo_FontExtents, "to_s", cr_font_extents_to_s, 0);
124
+ }
@@ -0,0 +1,63 @@
1
+ /* -*- c-file-style: "gnu"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Ruby Cairo Binding
4
+ *
5
+ * $Author: kou $
6
+ * $Date: 2007/03/06 12:17:34 $
7
+ *
8
+ * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
9
+ * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
10
+ *
11
+ * This file is made available under the same terms as Ruby
12
+ *
13
+ */
14
+
15
+
16
+ #include "rb_cairo.h"
17
+
18
+ VALUE rb_cCairo_FontFace;
19
+
20
+ #define _SELF (RVAL2CRFONTFACE(self))
21
+
22
+ cairo_font_face_t *
23
+ rb_cairo_font_face_from_ruby_object (VALUE obj)
24
+ {
25
+ cairo_font_face_t *face;
26
+ if (!RTEST (rb_obj_is_kind_of (obj, rb_cCairo_FontFace)))
27
+ {
28
+ rb_raise (rb_eTypeError, "not a cairo font face");
29
+ }
30
+ Data_Get_Struct (obj, cairo_font_face_t, face);
31
+ return face;
32
+ }
33
+
34
+ VALUE
35
+ rb_cairo_font_face_to_ruby_object (cairo_font_face_t *face)
36
+ {
37
+ if (face)
38
+ {
39
+ cairo_font_face_reference (face);
40
+ return Data_Wrap_Struct (rb_cCairo_FontFace, NULL,
41
+ cairo_font_face_destroy, face);
42
+ }
43
+ else
44
+ {
45
+ return Qnil;
46
+ }
47
+ }
48
+
49
+ static VALUE
50
+ cr_font_face_get_type (VALUE self)
51
+ {
52
+ return INT2NUM ( cairo_font_face_get_type (_SELF));
53
+ }
54
+
55
+
56
+ void
57
+ Init_cairo_font (void)
58
+ {
59
+ rb_cCairo_FontFace =
60
+ rb_define_class_under (rb_mCairo, "FontFace", rb_cObject);
61
+
62
+ rb_define_method (rb_cCairo_FontFace, "type", cr_font_face_get_type, 0);
63
+ }
@@ -0,0 +1,195 @@
1
+ /* -*- c-file-style: "gnu"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Ruby Cairo Binding
4
+ *
5
+ * $Author: kou $
6
+ * $Date: 2007/03/06 12:17:34 $
7
+ *
8
+ * Copyright 2005 Kouhei Sutou <kou@cozmixng.org>
9
+ *
10
+ * This file is made available under the same terms as Ruby
11
+ *
12
+ */
13
+
14
+ #include "rb_cairo.h"
15
+
16
+ #define _SELF(self) (RVAL2CRFONTOPTIONS(self))
17
+
18
+ VALUE rb_cCairo_FontOptions;
19
+
20
+ static inline void
21
+ cr_options_check_status (cairo_font_options_t *options)
22
+ {
23
+ rb_cairo_check_status (cairo_font_options_status (options));
24
+ }
25
+
26
+ cairo_font_options_t *
27
+ rb_cairo_font_options_from_ruby_object (VALUE obj)
28
+ {
29
+ cairo_font_options_t *options;
30
+ if (!RTEST (rb_obj_is_kind_of (obj, rb_cCairo_FontOptions)))
31
+ {
32
+ rb_raise (rb_eTypeError, "not a cairo font options");
33
+ }
34
+ Data_Get_Struct (obj, cairo_font_options_t, options);
35
+ return options;
36
+ }
37
+
38
+ static void
39
+ cr_options_free (void *ptr)
40
+ {
41
+ if (ptr)
42
+ {
43
+ cairo_font_options_destroy ((cairo_font_options_t *) ptr);
44
+ }
45
+ }
46
+
47
+ VALUE
48
+ rb_cairo_font_options_to_ruby_object (cairo_font_options_t *options)
49
+ {
50
+ if (options)
51
+ {
52
+ return Data_Wrap_Struct (rb_cCairo_FontOptions, NULL,
53
+ cr_options_free, options);
54
+ }
55
+ else
56
+ {
57
+ return Qnil;
58
+ }
59
+ }
60
+
61
+ static VALUE
62
+ cr_options_allocate (VALUE klass)
63
+ {
64
+ return Data_Wrap_Struct (klass, NULL, cr_options_free, NULL);
65
+ }
66
+
67
+ static VALUE
68
+ cr_options_create (VALUE self)
69
+ {
70
+ cairo_font_options_t *options;
71
+
72
+ options = cairo_font_options_create ();
73
+ cr_options_check_status (options);
74
+ DATA_PTR (self) = options;
75
+ return Qnil;
76
+ }
77
+
78
+ static VALUE
79
+ cr_options_copy (VALUE self)
80
+ {
81
+ cairo_font_options_t *options;
82
+
83
+ options = cairo_font_options_copy (_SELF (self));
84
+ cr_options_check_status (options);
85
+ return CRFONTOPTIONS2RVAL (options);
86
+ }
87
+
88
+ static VALUE
89
+ cr_options_merge (VALUE self, VALUE other)
90
+ {
91
+ cairo_font_options_merge (_SELF (self), _SELF (other));
92
+ return self;
93
+ }
94
+
95
+ static VALUE
96
+ cr_options_equal (VALUE self, VALUE other)
97
+ {
98
+ return cairo_font_options_equal (_SELF (self), _SELF (other)) ? Qtrue : Qfalse;
99
+ }
100
+
101
+ static VALUE
102
+ cr_options_hash (VALUE self)
103
+ {
104
+ return INT2NUM (cairo_font_options_hash (_SELF (self)));
105
+ }
106
+
107
+ static VALUE
108
+ cr_options_set_antialias (VALUE self, VALUE antialias)
109
+ {
110
+ cairo_font_options_set_antialias (_SELF (self), RVAL2CRANTIALIAS (antialias));
111
+ return self;
112
+ }
113
+
114
+ static VALUE
115
+ cr_options_get_antialias (VALUE self)
116
+ {
117
+ return INT2NUM (cairo_font_options_get_antialias (_SELF (self)));
118
+ }
119
+
120
+ static VALUE
121
+ cr_options_set_subpixel_order (VALUE self, VALUE subpixel_order)
122
+ {
123
+ cairo_font_options_set_subpixel_order (_SELF (self),
124
+ RVAL2CRSUBPIXELORDER (subpixel_order));
125
+ return self;
126
+ }
127
+
128
+ static VALUE
129
+ cr_options_get_subpixel_order (VALUE self)
130
+ {
131
+ return INT2NUM (cairo_font_options_get_subpixel_order (_SELF (self)));
132
+ }
133
+
134
+ static VALUE
135
+ cr_options_set_hint_style (VALUE self, VALUE hint_style)
136
+ {
137
+ cairo_font_options_set_hint_style (_SELF (self),
138
+ RVAL2CRHINTSTYLE (hint_style));
139
+ return self;
140
+ }
141
+
142
+ static VALUE
143
+ cr_options_get_hint_style (VALUE self)
144
+ {
145
+ return INT2NUM (cairo_font_options_get_hint_style (_SELF (self)));
146
+ }
147
+
148
+ static VALUE
149
+ cr_options_set_hint_metrics (VALUE self, VALUE hint_metrics)
150
+ {
151
+ cairo_font_options_set_hint_metrics (_SELF (self),
152
+ RVAL2CRHINTMETRICS (hint_metrics));
153
+ return self;
154
+ }
155
+
156
+ static VALUE
157
+ cr_options_get_hint_metrics (VALUE self)
158
+ {
159
+ return INT2NUM (cairo_font_options_get_hint_metrics (_SELF (self)));
160
+ }
161
+
162
+
163
+ void
164
+ Init_cairo_font_options (void)
165
+ {
166
+ rb_cCairo_FontOptions =
167
+ rb_define_class_under (rb_mCairo, "FontOptions", rb_cObject);
168
+
169
+ rb_define_alloc_func (rb_cCairo_FontOptions, cr_options_allocate);
170
+
171
+ rb_define_method (rb_cCairo_FontOptions, "initialize", cr_options_create, 0);
172
+
173
+ rb_define_method (rb_cCairo_FontOptions, "dup", cr_options_copy, 0);
174
+ rb_define_method (rb_cCairo_FontOptions, "merge", cr_options_merge, 1);
175
+ rb_define_method (rb_cCairo_FontOptions, "eql?", cr_options_equal, 1);
176
+ rb_define_method (rb_cCairo_FontOptions, "hash", cr_options_hash, 0);
177
+ rb_define_method (rb_cCairo_FontOptions, "set_antialias",
178
+ cr_options_set_antialias, 1);
179
+ rb_define_method (rb_cCairo_FontOptions, "antialias",
180
+ cr_options_get_antialias, 0);
181
+ rb_define_method (rb_cCairo_FontOptions, "set_subpixel_order",
182
+ cr_options_set_subpixel_order, 1);
183
+ rb_define_method (rb_cCairo_FontOptions, "subpixel_order",
184
+ cr_options_get_subpixel_order, 0);
185
+ rb_define_method (rb_cCairo_FontOptions, "set_hint_style",
186
+ cr_options_set_hint_style, 1);
187
+ rb_define_method (rb_cCairo_FontOptions, "hint_style",
188
+ cr_options_get_hint_style, 0);
189
+ rb_define_method (rb_cCairo_FontOptions, "set_hint_metrics",
190
+ cr_options_set_hint_metrics, 1);
191
+ rb_define_method (rb_cCairo_FontOptions, "hint_metrics",
192
+ cr_options_get_hint_metrics, 0);
193
+
194
+ RB_CAIRO_DEF_SETTERS (rb_cCairo_FontOptions);
195
+ }