Debian Codegraph @

doc/defuns-cairo-font-options.xml.texi

raw
1
2 @c %start of fragment
3
4 @deffn Function cairo-font-options-create @result{}@tie{} (@var{ret}@tie{}@code{<cairo-font-options-t >})
5 Allocates a new font options object with all options initialized to
6 default values.
7
8 @table @var
9 @item ret
10 a newly allocated @code{<cairo-font-options-t>}. Free with
11 @code{cairo-font-options-destroy}. This function always returns a valid
12 pointer; if memory cannot be allocated, then a special error object is
13 returned where all operations on the object do nothing. You can check
14 for this with @code{cairo-font-options-status}.
15
16 @end table
17
18 @end deffn
19
20 @deffn Function cairo-font-options-copy (@var{original}@tie{}@code{<cairo-font-options-t>}) @result{}@tie{} (@var{ret}@tie{}@code{<cairo-font-options-t >})
21 Allocates a new font options object copying the option values from
22 @var{original}.
23
24 @table @var
25 @item original
26 a @code{<cairo-font-options-t>}
27
28 @item ret
29 a newly allocated @code{<cairo-font-options-t>}. Free with
30 @code{cairo-font-options-destroy}. This function always returns a valid
31 pointer; if memory cannot be allocated, then a special error object is
32 returned where all operations on the object do nothing. You can check
33 for this with @code{cairo-font-options-status}.
34
35 @end table
36
37 @end deffn
38
39 @deffn Function cairo-font-options-merge (@var{options}@tie{}@code{<cairo-font-options-t>}) (@var{other}@tie{}@code{<cairo-font-options-t>})
40 Merges non-default options from @var{other} into @var{options},
41 replacing existing values. This operation can be thought of as somewhat
42 similar to compositing @var{other} onto @var{options} with the operation
43 of @samp{CAIRO_OPERATION_OVER}.
44
45 @table @var
46 @item options
47 a @code{<cairo-font-options-t>}
48
49 @item other
50 another @code{<cairo-font-options-t>}
51
52 @end table
53
54 @end deffn
55
56 @deffn Function cairo-font-options-hash (@var{options}@tie{}@code{<cairo-font-options-t>}) @result{}@tie{} (@var{ret}@tie{}@code{<unsigned long>})
57 Compute a hash for the font options object; this value will be useful
58 when storing an object containing a @code{<cairo-font-options-t>} in a
59 hash table.
60
61 @table @var
62 @item options
63 a @code{<cairo-font-options-t>}
64
65 @item ret
66 the hash value for the font options object. The return value can be cast
67 to a 32-bit type if a 32-bit hash value is needed.
68
69 @end table
70
71 @end deffn
72
73 @deffn Function cairo-font-options-set-antialias (@var{options}@tie{}@code{<cairo-font-options-t>}) (@var{antialias}@tie{}@code{<cairo-antialias-t>})
74 Sets the antialiasing mode for the font options object. This specifies
75 the type of antialiasing to do when rendering text.
76
77 @table @var
78 @item options
79 a @code{<cairo-font-options-t>}
80
81 @item antialias
82 the new antialiasing mode
83
84 @end table
85
86 @end deffn
87
88 @deffn Function cairo-font-options-get-antialias (@var{options}@tie{}@code{<cairo-font-options-t>}) @result{}@tie{} (@var{ret}@tie{}@code{<cairo-antialias-t>})
89 Gets the antialiasing mode for the font options object.
90
91 @table @var
92 @item options
93 a @code{<cairo-font-options-t>}
94
95 @item ret
96 the antialiasing mode
97
98 @end table
99
100 @end deffn
101
102 @deffn Function cairo-font-options-set-hint-style (@var{options}@tie{}@code{<cairo-font-options-t>}) (@var{hint-style}@tie{}@code{<cairo-hint-style-t>})
103 Sets the hint style for font outlines for the font options object. This
104 controls whether to fit font outlines to the pixel grid, and if so,
105 whether to optimize for fidelity or contrast. See the documentation for
106 @code{<cairo-hint-style-t>} for full details.
107
108 @table @var
109 @item options
110 a @code{<cairo-font-options-t>}
111
112 @item hint-style
113 the new hint style
114
115 @end table
116
117 @end deffn
118
119 @deffn Function cairo-font-options-get-hint-style (@var{options}@tie{}@code{<cairo-font-options-t>}) @result{}@tie{} (@var{ret}@tie{}@code{<cairo-hint-style-t>})
120 Gets the hint style for font outlines for the font options object. See
121 the documentation for @code{<cairo-hint-style-t>} for full details.
122
123 @table @var
124 @item options
125 a @code{<cairo-font-options-t>}
126
127 @item ret
128 the hint style for the font options object
129
130 @end table
131
132 @end deffn
133
134 @deffn Function cairo-font-options-set-hint-metrics (@var{options}@tie{}@code{<cairo-font-options-t>}) (@var{hint-metrics}@tie{}@code{<cairo-hint-metrics-t>})
135 Sets the metrics hinting mode for the font options object. This controls
136 whether metrics are quantized to integer values in device units. See the
137 documentation for @code{<cairo-hint-metrics-t>} for full details.
138
139 @table @var
140 @item options
141 a @code{<cairo-font-options-t>}
142
143 @item hint-metrics
144 the new metrics hinting mode
145
146 @end table
147
148 @end deffn
149
150
151 @c %end of fragment