cairo 1.7.0-x86-mswin32 → 1.8.0-x86-mswin32
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.
- data/ChangeLog +32 -0
- data/NEWS +9 -1
- data/README +1 -0
- data/Rakefile +2 -2
- data/cairo/DLL_FAQ.txt +397 -0
- data/cairo/README.txt +53 -0
- data/cairo/USAGE.txt +94 -0
- data/cairo/bin/libcairo-2.dll +0 -0
- data/cairo/bin/libpng12-0.dll +0 -0
- data/cairo/bin/zlib1.dll +0 -0
- data/cairo/include/cairo/cairo-deprecated.h +0 -4
- data/cairo/include/cairo/cairo-features.h +7 -22
- data/cairo/include/cairo/cairo-pdf.h +1 -1
- data/cairo/include/cairo/cairo-ps.h +1 -1
- data/cairo/include/cairo/cairo-svg.h +1 -1
- data/cairo/include/cairo/cairo-version.h +8 -0
- data/cairo/include/cairo/cairo-win32.h +9 -1
- data/cairo/include/cairo/cairo.h +420 -32
- data/cairo/include/libpng12/png.h +3592 -0
- data/cairo/include/libpng12/pngconf.h +1481 -0
- data/cairo/include/png.h +36 -13
- data/cairo/include/pngconf.h +3 -3
- data/cairo/include/zconf.h +332 -0
- data/cairo/include/zlib.h +1357 -0
- data/cairo/lib/cairo.def +22 -0
- data/cairo/lib/cairo.lib +0 -0
- data/cairo/lib/libcairo.dll.a +0 -0
- data/cairo/lib/libpng.def +1 -0
- data/cairo/lib/libpng.lib +0 -0
- data/cairo/lib/libpng12.dll.a +0 -0
- data/cairo/lib/pkgconfig/cairo-pdf.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-png.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-ps.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-svg.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32-font.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32.pc +4 -4
- data/cairo/lib/pkgconfig/cairo.pc +4 -4
- data/cairo/lib/pkgconfig/libpng.pc +3 -2
- data/cairo/lib/pkgconfig/libpng12.pc +3 -2
- data/cairo/lib/zdll.exp +0 -0
- data/cairo/lib/zdll.lib +0 -0
- data/cairo/lib/zlib.def +60 -0
- data/cairo/manifest/cairo-dev_1.8.0-1_win32.mft +76 -0
- data/cairo/manifest/cairo_1.8.0-1_win32.mft +5 -0
- data/cairo/manifest/{libpng-dev-1.2.29.mft → libpng-dev_1.2.32-1_win32.mft} +5 -2
- data/cairo/manifest/libpng_1.2.32-1_win32.mft +2 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-LGPL-2.1 +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-MPL-1.1 +0 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +20 -16
- data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +16 -12
- data/cairo/share/gtk-doc/html/cairo/bindings-path.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +25 -21
- data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +14 -10
- data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +19 -15
- data/cairo/share/gtk-doc/html/cairo/cairo-context.html +2721 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-error-status.html +361 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-face.html +418 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-options.html +695 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-ft-font.html +318 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-image-surface.html +486 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-cairo-matrix-t.html → cairo-matrix.html} +137 -156
- data/cairo/share/gtk-doc/html/cairo/{cairo-Paths.html → cairo-paths.html} +275 -306
- data/cairo/share/gtk-doc/html/cairo/cairo-pattern.html +1524 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PDF-Surfaces.html → cairo-pdf-surface.html} +60 -70
- data/cairo/share/gtk-doc/html/cairo/cairo-png-functions.html +332 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PostScript-Surfaces.html → cairo-ps-surface.html} +131 -150
- data/cairo/share/gtk-doc/html/cairo/cairo-quartz-font.html +153 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Quartz-Surfaces.html → cairo-quartz-surface.html} +53 -62
- data/cairo/share/gtk-doc/html/cairo/cairo-scaled-font.html +1051 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-support.html +54 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surface.html +1064 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-svg-surface.html +324 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-text.html +1264 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Transformations.html → cairo-transformations.html} +98 -115
- data/cairo/share/gtk-doc/html/cairo/cairo-types.html +134 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-user-font.html +769 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-version-info.html +355 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-font.html +366 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-surface.html +321 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-XLib-Surfaces.html → cairo-xlib-surface.html} +104 -121
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +390 -405
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +390 -405
- data/cairo/share/gtk-doc/html/cairo/index-1.2.html +63 -59
- data/cairo/share/gtk-doc/html/cairo/index-1.4.html +45 -41
- data/cairo/share/gtk-doc/html/cairo/index-1.6.html +29 -23
- data/cairo/share/gtk-doc/html/cairo/index-1.8.html +107 -0
- data/cairo/share/gtk-doc/html/cairo/index-all.html +759 -0
- data/cairo/share/gtk-doc/html/cairo/index.html +51 -41
- data/cairo/share/gtk-doc/html/cairo/index.sgml +478 -466
- data/cairo/share/gtk-doc/html/cairo/language-bindings.html +22 -18
- data/cairo/share/gtk-doc/html/cairo/style.css +14 -2
- data/cairo/share/man/man3/libpng.3 +443 -17
- data/cairo/share/man/man3/libpngpf.3 +618 -102
- data/cairo/share/man/man5/png.5 +1 -1
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.log +1021 -0
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.sh +68 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.log +269 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.sh +63 -0
- data/cairo/test/example_d.exe +0 -0
- data/cairo/test/minigzip_d.exe +0 -0
- data/cairo/test/testzlib_d.exe +0 -0
- data/cairo/test/untgz_d.exe +0 -0
- data/doc/en/cairo-context.html +81 -91
- data/doc/en/cairo-font-options.html +11 -26
- data/doc/en/cairo-text-cluster-flag.html +35 -0
- data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +3 -3
- data/doc/en/cairo.html +38 -42
- data/doc/en/index.html +129 -142
- data/doc/ja/cairo-font-options.html +3 -25
- data/doc/ja/cairo-text-cluster-flag.html +46 -0
- data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +16 -15
- data/doc/ja/cairo.html +3 -7
- data/doc/ja/index.html +9 -17
- data/src/cairo.def +1 -1
- data/src/cairo.so +0 -0
- data/src/lib/cairo/constants.rb +3 -1
- data/src/libruby-cairo.a +0 -0
- data/src/rb_cairo.c +2 -2
- data/src/rb_cairo.h +5 -5
- data/src/rb_cairo_constants.c +12 -19
- data/src/rb_cairo_context.c +25 -21
- data/src/rb_cairo_font_face.c +44 -29
- data/src/rb_cairo_font_options.c +1 -23
- data/src/rb_cairo_scaled_font.c +5 -5
- data/test/test_constants.rb +6 -9
- data/test/test_context.rb +0 -12
- data/test/test_font_face.rb +7 -7
- data/test/test_font_options.rb +2 -21
- data/test/test_scaled_font.rb +3 -3
- data/test/test_text_to_glyphs_data.rb +19 -15
- metadata +68 -45
- data/cairo/make/cairo-1.6.4-2.sh +0 -55
- data/cairo/make/libpng-1.2.29.sh +0 -35
- data/cairo/manifest/cairo-1.6.4-2.mft +0 -6
- data/cairo/manifest/cairo-dev-1.6.4-2.mft +0 -72
- data/cairo/manifest/libpng-1.2.29.mft +0 -2
- data/cairo/share/gtk-doc/html/cairo/Drawing.html +0 -53
- data/cairo/share/gtk-doc/html/cairo/Fonts.html +0 -56
- data/cairo/share/gtk-doc/html/cairo/Support.html +0 -50
- data/cairo/share/gtk-doc/html/cairo/Surfaces.html +0 -65
- data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +0 -328
- data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +0 -720
- data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +0 -297
- data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +0 -484
- data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +0 -345
- data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +0 -1560
- data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +0 -161
- data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +0 -337
- data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +0 -823
- data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +0 -836
- data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +0 -143
- data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +0 -325
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +0 -381
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +0 -331
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +0 -427
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +0 -995
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +0 -2795
- data/cairo/share/gtk-doc/html/cairo/ix01.html +0 -693
- data/doc/en/cairo-lcd-filter.html +0 -39
- data/doc/ja/cairo-lcd-filter.html +0 -63
@@ -1,720 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
5
|
-
<title>cairo_font_options_t</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
|
-
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="Fonts.html" title="Fonts">
|
9
|
-
<link rel="prev" href="cairo-Scaled-Fonts.html" title="cairo_scaled_font_t">
|
10
|
-
<link rel="next" href="cairo-FreeType-Fonts.html" title="FreeType Fonts">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="Drawing.html" title="Drawing">
|
14
|
-
<link rel="chapter" href="Fonts.html" title="Fonts">
|
15
|
-
<link rel="chapter" href="Surfaces.html" title="Surfaces">
|
16
|
-
<link rel="chapter" href="Support.html" title="Utilities">
|
17
|
-
<link rel="index" href="ix01.html" title="Index">
|
18
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
|
-
</head>
|
23
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
25
|
-
<tr valign="middle">
|
26
|
-
<td><a accesskey="p" href="cairo-Scaled-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
27
|
-
<td><a accesskey="u" href="Fonts.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
28
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
|
-
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-FreeType-Fonts.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
|
-
</tr>
|
32
|
-
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2619108" class="shortcut">Top</a>
|
33
|
-
 | 
|
34
|
-
<a href="#id2651232" class="shortcut">Description</a></nobr></td></tr>
|
35
|
-
</table>
|
36
|
-
<div class="refentry" lang="en">
|
37
|
-
<a name="cairo-Font-Options"></a><div class="titlepage"></div>
|
38
|
-
<div class="refnamediv"><table width="100%"><tr>
|
39
|
-
<td valign="top">
|
40
|
-
<h2>
|
41
|
-
<a name="id2619108"></a><span class="refentrytitle">cairo_font_options_t</span>
|
42
|
-
</h2>
|
43
|
-
<p>cairo_font_options_t — How a font should be rendered</p>
|
44
|
-
</td>
|
45
|
-
<td valign="top" align="right"></td>
|
46
|
-
</tr></table></div>
|
47
|
-
<div class="refsynopsisdiv">
|
48
|
-
<h2>Synopsis</h2>
|
49
|
-
<pre class="synopsis">
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
typedef <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a>;
|
54
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a>* <a class="link" href="cairo-Font-Options.html#cairo-font-options-create">cairo_font_options_create</a> (void);
|
55
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a>* <a class="link" href="cairo-Font-Options.html#cairo-font-options-copy">cairo_font_options_copy</a> (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *original);
|
56
|
-
void <a class="link" href="cairo-Font-Options.html#cairo-font-options-destroy">cairo_font_options_destroy</a> (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
57
|
-
<a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Font-Options.html#cairo-font-options-status">cairo_font_options_status</a> (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
58
|
-
void <a class="link" href="cairo-Font-Options.html#cairo-font-options-merge">cairo_font_options_merge</a> (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
59
|
-
const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *other);
|
60
|
-
unsigned long <a class="link" href="cairo-Font-Options.html#cairo-font-options-hash">cairo_font_options_hash</a> (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
61
|
-
<a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> <a class="link" href="cairo-Font-Options.html#cairo-font-options-equal">cairo_font_options_equal</a> (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
62
|
-
const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *other);
|
63
|
-
void <a class="link" href="cairo-Font-Options.html#cairo-font-options-set-antialias">cairo_font_options_set_antialias</a> (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
64
|
-
<a class="link" href="cairo-cairo-t.html#cairo-antialias-t">cairo_antialias_t</a> antialias);
|
65
|
-
<a class="link" href="cairo-cairo-t.html#cairo-antialias-t">cairo_antialias_t</a> <a class="link" href="cairo-Font-Options.html#cairo-font-options-get-antialias">cairo_font_options_get_antialias</a> (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
66
|
-
enum <a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a>;
|
67
|
-
void <a class="link" href="cairo-Font-Options.html#cairo-font-options-set-subpixel-order">cairo_font_options_set_subpixel_order</a>
|
68
|
-
(<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
69
|
-
<a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a> subpixel_order);
|
70
|
-
<a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a> <a class="link" href="cairo-Font-Options.html#cairo-font-options-get-subpixel-order">cairo_font_options_get_subpixel_order</a>
|
71
|
-
(const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
72
|
-
enum <a class="link" href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a>;
|
73
|
-
void <a class="link" href="cairo-Font-Options.html#cairo-font-options-set-hint-style">cairo_font_options_set_hint_style</a> (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
74
|
-
<a class="link" href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a> hint_style);
|
75
|
-
<a class="link" href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a> <a class="link" href="cairo-Font-Options.html#cairo-font-options-get-hint-style">cairo_font_options_get_hint_style</a> (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
76
|
-
enum <a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a>;
|
77
|
-
void <a class="link" href="cairo-Font-Options.html#cairo-font-options-set-hint-metrics">cairo_font_options_set_hint_metrics</a> (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
78
|
-
<a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a> hint_metrics);
|
79
|
-
<a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a> <a class="link" href="cairo-Font-Options.html#cairo-font-options-get-hint-metrics">cairo_font_options_get_hint_metrics</a>
|
80
|
-
(const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
81
|
-
</pre>
|
82
|
-
</div>
|
83
|
-
<div class="refsect1" lang="en">
|
84
|
-
<a name="id2651232"></a><h2>Description</h2>
|
85
|
-
<p>
|
86
|
-
The font options specify how fonts should be rendered. Most of the time the
|
87
|
-
font options implied by a surface are just right and do not need any changes,
|
88
|
-
but for pixel-based targets tweaking font options may result in superior
|
89
|
-
output on a particular display.
|
90
|
-
</p>
|
91
|
-
</div>
|
92
|
-
<div class="refsect1" lang="en">
|
93
|
-
<a name="id2651252"></a><h2>Details</h2>
|
94
|
-
<div class="refsect2" lang="en">
|
95
|
-
<a name="id2651262"></a><h3>
|
96
|
-
<a name="cairo-font-options-t"></a>cairo_font_options_t</h3>
|
97
|
-
<a class="indexterm" name="id2651274"></a><pre class="programlisting">typedef struct _cairo_font_options cairo_font_options_t;
|
98
|
-
</pre>
|
99
|
-
<p>
|
100
|
-
An opaque structure holding all options that are used when
|
101
|
-
rendering fonts.
|
102
|
-
</p>
|
103
|
-
<p>
|
104
|
-
Individual features of a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a> can be set or
|
105
|
-
accessed using functions named
|
106
|
-
cairo_font_options_set_<span class="emphasis"><em>feature_name</em></span> and
|
107
|
-
cairo_font_options_get_<span class="emphasis"><em>feature_name</em></span>, like
|
108
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-set-antialias"><code class="function">cairo_font_options_set_antialias()</code></a> and
|
109
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-get-antialias"><code class="function">cairo_font_options_get_antialias()</code></a>.
|
110
|
-
</p>
|
111
|
-
<p>
|
112
|
-
New features may be added to a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a> in the
|
113
|
-
future. For this reason, <a class="link" href="cairo-Font-Options.html#cairo-font-options-copy"><code class="function">cairo_font_options_copy()</code></a>,
|
114
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-equal"><code class="function">cairo_font_options_equal()</code></a>, <a class="link" href="cairo-Font-Options.html#cairo-font-options-merge"><code class="function">cairo_font_options_merge()</code></a>, and
|
115
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-hash"><code class="function">cairo_font_options_hash()</code></a> should be used to copy, check
|
116
|
-
for equality, merge, or compute a hash value of
|
117
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a> objects.</p>
|
118
|
-
<p>
|
119
|
-
|
120
|
-
</p>
|
121
|
-
</div>
|
122
|
-
<hr>
|
123
|
-
<div class="refsect2" lang="en">
|
124
|
-
<a name="id2651385"></a><h3>
|
125
|
-
<a name="cairo-font-options-create"></a>cairo_font_options_create ()</h3>
|
126
|
-
<a class="indexterm" name="id2651397"></a><pre class="programlisting"><a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a>* cairo_font_options_create (void);</pre>
|
127
|
-
<p>
|
128
|
-
Allocates a new font options object with all options initialized
|
129
|
-
to default values.</p>
|
130
|
-
<p>
|
131
|
-
|
132
|
-
</p>
|
133
|
-
<div class="variablelist"><table border="0">
|
134
|
-
<col align="left" valign="top">
|
135
|
-
<tbody><tr>
|
136
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
137
|
-
<td> a newly allocated <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>. Free with
|
138
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-destroy"><code class="function">cairo_font_options_destroy()</code></a>. This function always returns a
|
139
|
-
valid pointer; if memory cannot be allocated, then a special
|
140
|
-
error object is returned where all operations on the object do nothing.
|
141
|
-
You can check for this with <a class="link" href="cairo-Font-Options.html#cairo-font-options-status"><code class="function">cairo_font_options_status()</code></a>.
|
142
|
-
</td>
|
143
|
-
</tr></tbody>
|
144
|
-
</table></div>
|
145
|
-
</div>
|
146
|
-
<hr>
|
147
|
-
<div class="refsect2" lang="en">
|
148
|
-
<a name="id2651464"></a><h3>
|
149
|
-
<a name="cairo-font-options-copy"></a>cairo_font_options_copy ()</h3>
|
150
|
-
<a class="indexterm" name="id2651476"></a><pre class="programlisting"><a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a>* cairo_font_options_copy (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *original);</pre>
|
151
|
-
<p>
|
152
|
-
Allocates a new font options object copying the option values from
|
153
|
-
<em class="parameter"><code>original</code></em>.</p>
|
154
|
-
<p>
|
155
|
-
|
156
|
-
</p>
|
157
|
-
<div class="variablelist"><table border="0">
|
158
|
-
<col align="left" valign="top">
|
159
|
-
<tbody>
|
160
|
-
<tr>
|
161
|
-
<td><p><span class="term"><em class="parameter"><code>original</code></em> :</span></p></td>
|
162
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
163
|
-
</td>
|
164
|
-
</tr>
|
165
|
-
<tr>
|
166
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
167
|
-
<td> a newly allocated <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>. Free with
|
168
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-destroy"><code class="function">cairo_font_options_destroy()</code></a>. This function always returns a
|
169
|
-
valid pointer; if memory cannot be allocated, then a special
|
170
|
-
error object is returned where all operations on the object do nothing.
|
171
|
-
You can check for this with <a class="link" href="cairo-Font-Options.html#cairo-font-options-status"><code class="function">cairo_font_options_status()</code></a>.
|
172
|
-
</td>
|
173
|
-
</tr>
|
174
|
-
</tbody>
|
175
|
-
</table></div>
|
176
|
-
</div>
|
177
|
-
<hr>
|
178
|
-
<div class="refsect2" lang="en">
|
179
|
-
<a name="id2651576"></a><h3>
|
180
|
-
<a name="cairo-font-options-destroy"></a>cairo_font_options_destroy ()</h3>
|
181
|
-
<a class="indexterm" name="id2651588"></a><pre class="programlisting">void cairo_font_options_destroy (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
182
|
-
<p>
|
183
|
-
Destroys a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a> object created with with
|
184
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-create"><code class="function">cairo_font_options_create()</code></a> or <a class="link" href="cairo-Font-Options.html#cairo-font-options-copy"><code class="function">cairo_font_options_copy()</code></a>.</p>
|
185
|
-
<p>
|
186
|
-
|
187
|
-
</p>
|
188
|
-
<div class="variablelist"><table border="0">
|
189
|
-
<col align="left" valign="top">
|
190
|
-
<tbody><tr>
|
191
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
192
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
193
|
-
</td>
|
194
|
-
</tr></tbody>
|
195
|
-
</table></div>
|
196
|
-
</div>
|
197
|
-
<hr>
|
198
|
-
<div class="refsect2" lang="en">
|
199
|
-
<a name="id2651667"></a><h3>
|
200
|
-
<a name="cairo-font-options-status"></a>cairo_font_options_status ()</h3>
|
201
|
-
<a class="indexterm" name="id2651679"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_font_options_status (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
202
|
-
<p>
|
203
|
-
Checks whether an error has previously occurred for this
|
204
|
-
font options object</p>
|
205
|
-
<p>
|
206
|
-
|
207
|
-
</p>
|
208
|
-
<div class="variablelist"><table border="0">
|
209
|
-
<col align="left" valign="top">
|
210
|
-
<tbody>
|
211
|
-
<tr>
|
212
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
213
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
214
|
-
</td>
|
215
|
-
</tr>
|
216
|
-
<tr>
|
217
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
218
|
-
<td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>
|
219
|
-
</td>
|
220
|
-
</tr>
|
221
|
-
</tbody>
|
222
|
-
</table></div>
|
223
|
-
</div>
|
224
|
-
<hr>
|
225
|
-
<div class="refsect2" lang="en">
|
226
|
-
<a name="id2651764"></a><h3>
|
227
|
-
<a name="cairo-font-options-merge"></a>cairo_font_options_merge ()</h3>
|
228
|
-
<a class="indexterm" name="id2654570"></a><pre class="programlisting">void cairo_font_options_merge (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
229
|
-
const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *other);</pre>
|
230
|
-
<p>
|
231
|
-
Merges non-default options from <em class="parameter"><code>other</code></em> into <em class="parameter"><code>options</code></em>, replacing
|
232
|
-
existing values. This operation can be thought of as somewhat
|
233
|
-
similar to compositing <em class="parameter"><code>other</code></em> onto <em class="parameter"><code>options</code></em> with the operation
|
234
|
-
of <code class="literal">CAIRO_OPERATION_OVER</code>.</p>
|
235
|
-
<p>
|
236
|
-
|
237
|
-
</p>
|
238
|
-
<div class="variablelist"><table border="0">
|
239
|
-
<col align="left" valign="top">
|
240
|
-
<tbody>
|
241
|
-
<tr>
|
242
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
243
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
244
|
-
</td>
|
245
|
-
</tr>
|
246
|
-
<tr>
|
247
|
-
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
|
248
|
-
<td> another <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
249
|
-
</td>
|
250
|
-
</tr>
|
251
|
-
</tbody>
|
252
|
-
</table></div>
|
253
|
-
</div>
|
254
|
-
<hr>
|
255
|
-
<div class="refsect2" lang="en">
|
256
|
-
<a name="id2654676"></a><h3>
|
257
|
-
<a name="cairo-font-options-hash"></a>cairo_font_options_hash ()</h3>
|
258
|
-
<a class="indexterm" name="id2654687"></a><pre class="programlisting">unsigned long cairo_font_options_hash (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
259
|
-
<p>
|
260
|
-
Compute a hash for the font options object; this value will
|
261
|
-
be useful when storing an object containing a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
262
|
-
in a hash table.</p>
|
263
|
-
<p>
|
264
|
-
|
265
|
-
</p>
|
266
|
-
<div class="variablelist"><table border="0">
|
267
|
-
<col align="left" valign="top">
|
268
|
-
<tbody>
|
269
|
-
<tr>
|
270
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
271
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
272
|
-
</td>
|
273
|
-
</tr>
|
274
|
-
<tr>
|
275
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
276
|
-
<td> the hash value for the font options object.
|
277
|
-
The return value can be cast to a 32-bit type if a
|
278
|
-
32-bit hash value is needed.
|
279
|
-
</td>
|
280
|
-
</tr>
|
281
|
-
</tbody>
|
282
|
-
</table></div>
|
283
|
-
</div>
|
284
|
-
<hr>
|
285
|
-
<div class="refsect2" lang="en">
|
286
|
-
<a name="id2654759"></a><h3>
|
287
|
-
<a name="cairo-font-options-equal"></a>cairo_font_options_equal ()</h3>
|
288
|
-
<a class="indexterm" name="id2654770"></a><pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> cairo_font_options_equal (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
289
|
-
const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *other);</pre>
|
290
|
-
<p>
|
291
|
-
Compares two font options objects for equality.</p>
|
292
|
-
<p>
|
293
|
-
|
294
|
-
</p>
|
295
|
-
<div class="variablelist"><table border="0">
|
296
|
-
<col align="left" valign="top">
|
297
|
-
<tbody>
|
298
|
-
<tr>
|
299
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
300
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
301
|
-
</td>
|
302
|
-
</tr>
|
303
|
-
<tr>
|
304
|
-
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
|
305
|
-
<td> another <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
306
|
-
</td>
|
307
|
-
</tr>
|
308
|
-
<tr>
|
309
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
310
|
-
<td> <code class="literal">TRUE</code> if all fields of the two font options objects match.
|
311
|
-
Note that this function will return <code class="literal">FALSE</code> if either object is in
|
312
|
-
error.
|
313
|
-
</td>
|
314
|
-
</tr>
|
315
|
-
</tbody>
|
316
|
-
</table></div>
|
317
|
-
</div>
|
318
|
-
<hr>
|
319
|
-
<div class="refsect2" lang="en">
|
320
|
-
<a name="id2654885"></a><h3>
|
321
|
-
<a name="cairo-font-options-set-antialias"></a>cairo_font_options_set_antialias ()</h3>
|
322
|
-
<a class="indexterm" name="id2654898"></a><pre class="programlisting">void cairo_font_options_set_antialias (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
323
|
-
<a class="link" href="cairo-cairo-t.html#cairo-antialias-t">cairo_antialias_t</a> antialias);</pre>
|
324
|
-
<p>
|
325
|
-
Sets the antialiasing mode for the font options object. This
|
326
|
-
specifies the type of antialiasing to do when rendering text.</p>
|
327
|
-
<p>
|
328
|
-
|
329
|
-
</p>
|
330
|
-
<div class="variablelist"><table border="0">
|
331
|
-
<col align="left" valign="top">
|
332
|
-
<tbody>
|
333
|
-
<tr>
|
334
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
335
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
336
|
-
</td>
|
337
|
-
</tr>
|
338
|
-
<tr>
|
339
|
-
<td><p><span class="term"><em class="parameter"><code>antialias</code></em> :</span></p></td>
|
340
|
-
<td> the new antialiasing mode
|
341
|
-
</td>
|
342
|
-
</tr>
|
343
|
-
</tbody>
|
344
|
-
</table></div>
|
345
|
-
</div>
|
346
|
-
<hr>
|
347
|
-
<div class="refsect2" lang="en">
|
348
|
-
<a name="id2654977"></a><h3>
|
349
|
-
<a name="cairo-font-options-get-antialias"></a>cairo_font_options_get_antialias ()</h3>
|
350
|
-
<a class="indexterm" name="id2654991"></a><pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-antialias-t">cairo_antialias_t</a> cairo_font_options_get_antialias (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
351
|
-
<p>
|
352
|
-
Gets the antialiasing mode for the font options object.</p>
|
353
|
-
<p>
|
354
|
-
|
355
|
-
</p>
|
356
|
-
<div class="variablelist"><table border="0">
|
357
|
-
<col align="left" valign="top">
|
358
|
-
<tbody>
|
359
|
-
<tr>
|
360
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
361
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
362
|
-
</td>
|
363
|
-
</tr>
|
364
|
-
<tr>
|
365
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
366
|
-
<td> the antialiasing mode
|
367
|
-
</td>
|
368
|
-
</tr>
|
369
|
-
</tbody>
|
370
|
-
</table></div>
|
371
|
-
</div>
|
372
|
-
<hr>
|
373
|
-
<div class="refsect2" lang="en">
|
374
|
-
<a name="id2655058"></a><h3>
|
375
|
-
<a name="cairo-subpixel-order-t"></a>enum cairo_subpixel_order_t</h3>
|
376
|
-
<a class="indexterm" name="id2655069"></a><pre class="programlisting">typedef enum _cairo_subpixel_order {
|
377
|
-
CAIRO_SUBPIXEL_ORDER_DEFAULT,
|
378
|
-
CAIRO_SUBPIXEL_ORDER_RGB,
|
379
|
-
CAIRO_SUBPIXEL_ORDER_BGR,
|
380
|
-
CAIRO_SUBPIXEL_ORDER_VRGB,
|
381
|
-
CAIRO_SUBPIXEL_ORDER_VBGR
|
382
|
-
} cairo_subpixel_order_t;
|
383
|
-
</pre>
|
384
|
-
<p>
|
385
|
-
The subpixel order specifies the order of color elements within
|
386
|
-
each pixel on the display device when rendering with an
|
387
|
-
antialiasing mode of <a class="link" href="cairo-cairo-t.html#CAIRO-ANTIALIAS-SUBPIXEL:CAPS"><code class="literal">CAIRO_ANTIALIAS_SUBPIXEL</code></a>.</p>
|
388
|
-
<p>
|
389
|
-
|
390
|
-
</p>
|
391
|
-
<div class="variablelist"><table border="0">
|
392
|
-
<col align="left" valign="top">
|
393
|
-
<tbody>
|
394
|
-
<tr>
|
395
|
-
<td><p><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-DEFAULT:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_DEFAULT</code></span></p></td>
|
396
|
-
<td> Use the default subpixel order for
|
397
|
-
for the target device
|
398
|
-
</td>
|
399
|
-
</tr>
|
400
|
-
<tr>
|
401
|
-
<td><p><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-RGB:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_RGB</code></span></p></td>
|
402
|
-
<td> Subpixel elements are arranged horizontally
|
403
|
-
with red at the left
|
404
|
-
</td>
|
405
|
-
</tr>
|
406
|
-
<tr>
|
407
|
-
<td><p><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-BGR:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_BGR</code></span></p></td>
|
408
|
-
<td> Subpixel elements are arranged horizontally
|
409
|
-
with blue at the left
|
410
|
-
</td>
|
411
|
-
</tr>
|
412
|
-
<tr>
|
413
|
-
<td><p><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-VRGB:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_VRGB</code></span></p></td>
|
414
|
-
<td> Subpixel elements are arranged vertically
|
415
|
-
with red at the top
|
416
|
-
</td>
|
417
|
-
</tr>
|
418
|
-
<tr>
|
419
|
-
<td><p><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-VBGR:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_VBGR</code></span></p></td>
|
420
|
-
<td> Subpixel elements are arranged vertically
|
421
|
-
with blue at the top
|
422
|
-
</td>
|
423
|
-
</tr>
|
424
|
-
</tbody>
|
425
|
-
</table></div>
|
426
|
-
</div>
|
427
|
-
<hr>
|
428
|
-
<div class="refsect2" lang="en">
|
429
|
-
<a name="id2655224"></a><h3>
|
430
|
-
<a name="cairo-font-options-set-subpixel-order"></a>cairo_font_options_set_subpixel_order ()</h3>
|
431
|
-
<a class="indexterm" name="id2655238"></a><pre class="programlisting">void cairo_font_options_set_subpixel_order
|
432
|
-
(<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
433
|
-
<a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a> subpixel_order);</pre>
|
434
|
-
<p>
|
435
|
-
Sets the subpixel order for the font options object. The subpixel
|
436
|
-
order specifies the order of color elements within each pixel on
|
437
|
-
the display device when rendering with an antialiasing mode of
|
438
|
-
<a class="link" href="cairo-cairo-t.html#CAIRO-ANTIALIAS-SUBPIXEL:CAPS"><code class="literal">CAIRO_ANTIALIAS_SUBPIXEL</code></a>. See the documentation for
|
439
|
-
<a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t"><span class="type">cairo_subpixel_order_t</span></a> for full details.</p>
|
440
|
-
<p>
|
441
|
-
|
442
|
-
</p>
|
443
|
-
<div class="variablelist"><table border="0">
|
444
|
-
<col align="left" valign="top">
|
445
|
-
<tbody>
|
446
|
-
<tr>
|
447
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
448
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
449
|
-
</td>
|
450
|
-
</tr>
|
451
|
-
<tr>
|
452
|
-
<td><p><span class="term"><em class="parameter"><code>subpixel_order</code></em> :</span></p></td>
|
453
|
-
<td> the new subpixel order
|
454
|
-
</td>
|
455
|
-
</tr>
|
456
|
-
</tbody>
|
457
|
-
</table></div>
|
458
|
-
</div>
|
459
|
-
<hr>
|
460
|
-
<div class="refsect2" lang="en">
|
461
|
-
<a name="id2655335"></a><h3>
|
462
|
-
<a name="cairo-font-options-get-subpixel-order"></a>cairo_font_options_get_subpixel_order ()</h3>
|
463
|
-
<a class="indexterm" name="id2655349"></a><pre class="programlisting"><a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a> cairo_font_options_get_subpixel_order
|
464
|
-
(const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
465
|
-
<p>
|
466
|
-
Gets the subpixel order for the font options object.
|
467
|
-
See the documentation for <a class="link" href="cairo-Font-Options.html#cairo-subpixel-order-t"><span class="type">cairo_subpixel_order_t</span></a> for full details.</p>
|
468
|
-
<p>
|
469
|
-
|
470
|
-
</p>
|
471
|
-
<div class="variablelist"><table border="0">
|
472
|
-
<col align="left" valign="top">
|
473
|
-
<tbody>
|
474
|
-
<tr>
|
475
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
476
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
477
|
-
</td>
|
478
|
-
</tr>
|
479
|
-
<tr>
|
480
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
481
|
-
<td> the subpixel order for the font options object
|
482
|
-
</td>
|
483
|
-
</tr>
|
484
|
-
</tbody>
|
485
|
-
</table></div>
|
486
|
-
</div>
|
487
|
-
<hr>
|
488
|
-
<div class="refsect2" lang="en">
|
489
|
-
<a name="id2655424"></a><h3>
|
490
|
-
<a name="cairo-hint-style-t"></a>enum cairo_hint_style_t</h3>
|
491
|
-
<a class="indexterm" name="id2623835"></a><pre class="programlisting">typedef enum _cairo_hint_style {
|
492
|
-
CAIRO_HINT_STYLE_DEFAULT,
|
493
|
-
CAIRO_HINT_STYLE_NONE,
|
494
|
-
CAIRO_HINT_STYLE_SLIGHT,
|
495
|
-
CAIRO_HINT_STYLE_MEDIUM,
|
496
|
-
CAIRO_HINT_STYLE_FULL
|
497
|
-
} cairo_hint_style_t;
|
498
|
-
</pre>
|
499
|
-
<p>
|
500
|
-
Specifies the type of hinting to do on font outlines. Hinting
|
501
|
-
is the process of fitting outlines to the pixel grid in order
|
502
|
-
to improve the appearance of the result. Since hinting outlines
|
503
|
-
involves distorting them, it also reduces the faithfulness
|
504
|
-
to the original outline shapes. Not all of the outline hinting
|
505
|
-
styles are supported by all font backends.
|
506
|
-
</p>
|
507
|
-
<p>
|
508
|
-
New entries may be added in future versions.</p>
|
509
|
-
<p>
|
510
|
-
|
511
|
-
</p>
|
512
|
-
<div class="variablelist"><table border="0">
|
513
|
-
<col align="left" valign="top">
|
514
|
-
<tbody>
|
515
|
-
<tr>
|
516
|
-
<td><p><span class="term"><a name="CAIRO-HINT-STYLE-DEFAULT:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_DEFAULT</code></span></p></td>
|
517
|
-
<td> Use the default hint style for
|
518
|
-
font backend and target device
|
519
|
-
</td>
|
520
|
-
</tr>
|
521
|
-
<tr>
|
522
|
-
<td><p><span class="term"><a name="CAIRO-HINT-STYLE-NONE:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_NONE</code></span></p></td>
|
523
|
-
<td> Do not hint outlines
|
524
|
-
</td>
|
525
|
-
</tr>
|
526
|
-
<tr>
|
527
|
-
<td><p><span class="term"><a name="CAIRO-HINT-STYLE-SLIGHT:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_SLIGHT</code></span></p></td>
|
528
|
-
<td> Hint outlines slightly to improve
|
529
|
-
contrast while retaining good fidelity to the original
|
530
|
-
shapes.
|
531
|
-
</td>
|
532
|
-
</tr>
|
533
|
-
<tr>
|
534
|
-
<td><p><span class="term"><a name="CAIRO-HINT-STYLE-MEDIUM:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_MEDIUM</code></span></p></td>
|
535
|
-
<td> Hint outlines with medium strength
|
536
|
-
giving a compromise between fidelity to the original shapes
|
537
|
-
and contrast
|
538
|
-
</td>
|
539
|
-
</tr>
|
540
|
-
<tr>
|
541
|
-
<td><p><span class="term"><a name="CAIRO-HINT-STYLE-FULL:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_FULL</code></span></p></td>
|
542
|
-
<td> Hint outlines to maximize contrast
|
543
|
-
</td>
|
544
|
-
</tr>
|
545
|
-
</tbody>
|
546
|
-
</table></div>
|
547
|
-
</div>
|
548
|
-
<hr>
|
549
|
-
<div class="refsect2" lang="en">
|
550
|
-
<a name="id2655565"></a><h3>
|
551
|
-
<a name="cairo-font-options-set-hint-style"></a>cairo_font_options_set_hint_style ()</h3>
|
552
|
-
<a class="indexterm" name="id2655578"></a><pre class="programlisting">void cairo_font_options_set_hint_style (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
553
|
-
<a class="link" href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a> hint_style);</pre>
|
554
|
-
<p>
|
555
|
-
Sets the hint style for font outlines for the font options object.
|
556
|
-
This controls whether to fit font outlines to the pixel grid,
|
557
|
-
and if so, whether to optimize for fidelity or contrast.
|
558
|
-
See the documentation for <a class="link" href="cairo-Font-Options.html#cairo-hint-style-t"><span class="type">cairo_hint_style_t</span></a> for full details.</p>
|
559
|
-
<p>
|
560
|
-
|
561
|
-
</p>
|
562
|
-
<div class="variablelist"><table border="0">
|
563
|
-
<col align="left" valign="top">
|
564
|
-
<tbody>
|
565
|
-
<tr>
|
566
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
567
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
568
|
-
</td>
|
569
|
-
</tr>
|
570
|
-
<tr>
|
571
|
-
<td><p><span class="term"><em class="parameter"><code>hint_style</code></em> :</span></p></td>
|
572
|
-
<td> the new hint style
|
573
|
-
</td>
|
574
|
-
</tr>
|
575
|
-
</tbody>
|
576
|
-
</table></div>
|
577
|
-
</div>
|
578
|
-
<hr>
|
579
|
-
<div class="refsect2" lang="en">
|
580
|
-
<a name="id2655657"></a><h3>
|
581
|
-
<a name="cairo-font-options-get-hint-style"></a>cairo_font_options_get_hint_style ()</h3>
|
582
|
-
<a class="indexterm" name="id2655670"></a><pre class="programlisting"><a class="link" href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a> cairo_font_options_get_hint_style (const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
583
|
-
<p>
|
584
|
-
Gets the hint style for font outlines for the font options object.
|
585
|
-
See the documentation for <a class="link" href="cairo-Font-Options.html#cairo-hint-style-t"><span class="type">cairo_hint_style_t</span></a> for full details.</p>
|
586
|
-
<p>
|
587
|
-
|
588
|
-
</p>
|
589
|
-
<div class="variablelist"><table border="0">
|
590
|
-
<col align="left" valign="top">
|
591
|
-
<tbody>
|
592
|
-
<tr>
|
593
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
594
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
595
|
-
</td>
|
596
|
-
</tr>
|
597
|
-
<tr>
|
598
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
599
|
-
<td> the hint style for the font options object
|
600
|
-
</td>
|
601
|
-
</tr>
|
602
|
-
</tbody>
|
603
|
-
</table></div>
|
604
|
-
</div>
|
605
|
-
<hr>
|
606
|
-
<div class="refsect2" lang="en">
|
607
|
-
<a name="id2655739"></a><h3>
|
608
|
-
<a name="cairo-hint-metrics-t"></a>enum cairo_hint_metrics_t</h3>
|
609
|
-
<a class="indexterm" name="id2655749"></a><pre class="programlisting">typedef enum _cairo_hint_metrics {
|
610
|
-
CAIRO_HINT_METRICS_DEFAULT,
|
611
|
-
CAIRO_HINT_METRICS_OFF,
|
612
|
-
CAIRO_HINT_METRICS_ON
|
613
|
-
} cairo_hint_metrics_t;
|
614
|
-
</pre>
|
615
|
-
<p>
|
616
|
-
Specifies whether to hint font metrics; hinting font metrics
|
617
|
-
means quantizing them so that they are integer values in
|
618
|
-
device space. Doing this improves the consistency of
|
619
|
-
letter and line spacing, however it also means that text
|
620
|
-
will be laid out differently at different zoom factors.</p>
|
621
|
-
<p>
|
622
|
-
|
623
|
-
</p>
|
624
|
-
<div class="variablelist"><table border="0">
|
625
|
-
<col align="left" valign="top">
|
626
|
-
<tbody>
|
627
|
-
<tr>
|
628
|
-
<td><p><span class="term"><a name="CAIRO-HINT-METRICS-DEFAULT:CAPS"></a><code class="literal">CAIRO_HINT_METRICS_DEFAULT</code></span></p></td>
|
629
|
-
<td> Hint metrics in the default
|
630
|
-
manner for the font backend and target device
|
631
|
-
</td>
|
632
|
-
</tr>
|
633
|
-
<tr>
|
634
|
-
<td><p><span class="term"><a name="CAIRO-HINT-METRICS-OFF:CAPS"></a><code class="literal">CAIRO_HINT_METRICS_OFF</code></span></p></td>
|
635
|
-
<td> Do not hint font metrics
|
636
|
-
</td>
|
637
|
-
</tr>
|
638
|
-
<tr>
|
639
|
-
<td><p><span class="term"><a name="CAIRO-HINT-METRICS-ON:CAPS"></a><code class="literal">CAIRO_HINT_METRICS_ON</code></span></p></td>
|
640
|
-
<td> Hint font metrics
|
641
|
-
</td>
|
642
|
-
</tr>
|
643
|
-
</tbody>
|
644
|
-
</table></div>
|
645
|
-
</div>
|
646
|
-
<hr>
|
647
|
-
<div class="refsect2" lang="en">
|
648
|
-
<a name="id2655838"></a><h3>
|
649
|
-
<a name="cairo-font-options-set-hint-metrics"></a>cairo_font_options_set_hint_metrics ()</h3>
|
650
|
-
<a class="indexterm" name="id2655850"></a><pre class="programlisting">void cairo_font_options_set_hint_metrics (<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,
|
651
|
-
<a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a> hint_metrics);</pre>
|
652
|
-
<p>
|
653
|
-
Sets the metrics hinting mode for the font options object. This
|
654
|
-
controls whether metrics are quantized to integer values in
|
655
|
-
device units.
|
656
|
-
See the documentation for <a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t"><span class="type">cairo_hint_metrics_t</span></a> for full details.</p>
|
657
|
-
<p>
|
658
|
-
|
659
|
-
</p>
|
660
|
-
<div class="variablelist"><table border="0">
|
661
|
-
<col align="left" valign="top">
|
662
|
-
<tbody>
|
663
|
-
<tr>
|
664
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
665
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
666
|
-
</td>
|
667
|
-
</tr>
|
668
|
-
<tr>
|
669
|
-
<td><p><span class="term"><em class="parameter"><code>hint_metrics</code></em> :</span></p></td>
|
670
|
-
<td> the new metrics hinting mode
|
671
|
-
</td>
|
672
|
-
</tr>
|
673
|
-
</tbody>
|
674
|
-
</table></div>
|
675
|
-
</div>
|
676
|
-
<hr>
|
677
|
-
<div class="refsect2" lang="en">
|
678
|
-
<a name="id2655930"></a><h3>
|
679
|
-
<a name="cairo-font-options-get-hint-metrics"></a>cairo_font_options_get_hint_metrics ()</h3>
|
680
|
-
<a class="indexterm" name="id2655943"></a><pre class="programlisting"><a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a> cairo_font_options_get_hint_metrics
|
681
|
-
(const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
682
|
-
<p>
|
683
|
-
Gets the metrics hinting mode for the font options object.
|
684
|
-
See the documentation for <a class="link" href="cairo-Font-Options.html#cairo-hint-metrics-t"><span class="type">cairo_hint_metrics_t</span></a> for full details.</p>
|
685
|
-
<p>
|
686
|
-
|
687
|
-
</p>
|
688
|
-
<div class="variablelist"><table border="0">
|
689
|
-
<col align="left" valign="top">
|
690
|
-
<tbody>
|
691
|
-
<tr>
|
692
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
693
|
-
<td> a <a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>
|
694
|
-
</td>
|
695
|
-
</tr>
|
696
|
-
<tr>
|
697
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
698
|
-
<td> the metrics hinting mode for the font options object
|
699
|
-
</td>
|
700
|
-
</tr>
|
701
|
-
</tbody>
|
702
|
-
</table></div>
|
703
|
-
</div>
|
704
|
-
</div>
|
705
|
-
<div class="refsect1" lang="en">
|
706
|
-
<a name="id2656013"></a><h2>See Also</h2>
|
707
|
-
<p>
|
708
|
-
</p>
|
709
|
-
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a></li></ul></div>
|
710
|
-
<p>
|
711
|
-
</p>
|
712
|
-
</div>
|
713
|
-
<div class="refsect1" lang="en">
|
714
|
-
<a name="id2656034"></a><div class="refsect2" lang="en"><a name="id2656035"></a></div>
|
715
|
-
<hr>
|
716
|
-
<div class="refsect2" lang="en"><a name="id2656036"></a></div>
|
717
|
-
</div>
|
718
|
-
</div>
|
719
|
-
</body>
|
720
|
-
</html>
|