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,823 +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_scaled_font_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-cairo-font-face-t.html" title="cairo_font_face_t">
|
10
|
-
<link rel="next" href="cairo-Font-Options.html" title="cairo_font_options_t">
|
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-cairo-font-face-t.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-Font-Options.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="#id2602749" class="shortcut">Top</a>
|
33
|
-
 | 
|
34
|
-
<a href="#id2651174" class="shortcut">Description</a></nobr></td></tr>
|
35
|
-
</table>
|
36
|
-
<div class="refentry" lang="en">
|
37
|
-
<a name="cairo-Scaled-Fonts"></a><div class="titlepage"></div>
|
38
|
-
<div class="refnamediv"><table width="100%"><tr>
|
39
|
-
<td valign="top">
|
40
|
-
<h2>
|
41
|
-
<a name="id2602749"></a><span class="refentrytitle">cairo_scaled_font_t</span>
|
42
|
-
</h2>
|
43
|
-
<p>cairo_scaled_font_t — Font face at particular size and options</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-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>;
|
54
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-create">cairo_scaled_font_create</a> (<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a> *font_face,
|
55
|
-
const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix,
|
56
|
-
const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm,
|
57
|
-
const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
58
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-reference">cairo_scaled_font_reference</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
59
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy">cairo_scaled_font_destroy</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
60
|
-
<a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-status">cairo_scaled_font_status</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
61
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t">cairo_font_extents_t</a>;
|
62
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-extents">cairo_scaled_font_extents</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
63
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t">cairo_font_extents_t</a> *extents);
|
64
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a>;
|
65
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-text-extents">cairo_scaled_font_text_extents</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
66
|
-
const char *utf8,
|
67
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);
|
68
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-glyph-extents">cairo_scaled_font_glyph_extents</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
69
|
-
const <a class="link" href="cairo-Text.html#cairo-glyph-t">cairo_glyph_t</a> *glyphs,
|
70
|
-
int num_glyphs,
|
71
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);
|
72
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-font-face">cairo_scaled_font_get_font_face</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
73
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-font-options">cairo_scaled_font_get_font_options</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
74
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);
|
75
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-font-matrix">cairo_scaled_font_get_font_matrix</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
76
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix);
|
77
|
-
void <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-ctm">cairo_scaled_font_get_ctm</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
78
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm);
|
79
|
-
<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-type-t">cairo_font_type_t</a> <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-type">cairo_scaled_font_get_type</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
80
|
-
unsigned int <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-reference-count">cairo_scaled_font_get_reference_count</a>
|
81
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);
|
82
|
-
<a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-set-user-data">cairo_scaled_font_set_user_data</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
83
|
-
const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key,
|
84
|
-
void *user_data,
|
85
|
-
<a class="link" href="cairo-Types.html#cairo-destroy-func-t">cairo_destroy_func_t</a> destroy);
|
86
|
-
void* <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-user-data">cairo_scaled_font_get_user_data</a> (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
87
|
-
const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key);
|
88
|
-
</pre>
|
89
|
-
</div>
|
90
|
-
<div class="refsect1" lang="en">
|
91
|
-
<a name="id2651174"></a><h2>Description</h2>
|
92
|
-
<p>
|
93
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> represents a realization of a font face at a particular
|
94
|
-
size and transformation and a certain set of font options.
|
95
|
-
</p>
|
96
|
-
</div>
|
97
|
-
<div class="refsect1" lang="en">
|
98
|
-
<a name="id2651199"></a><h2>Details</h2>
|
99
|
-
<div class="refsect2" lang="en">
|
100
|
-
<a name="id2626825"></a><h3>
|
101
|
-
<a name="cairo-scaled-font-t"></a>cairo_scaled_font_t</h3>
|
102
|
-
<a class="indexterm" name="id2626837"></a><pre class="programlisting">typedef struct _cairo_scaled_font cairo_scaled_font_t;
|
103
|
-
</pre>
|
104
|
-
<p>
|
105
|
-
A <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> is a font scaled to a particular size and device
|
106
|
-
resolution. A <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> is most useful for low-level font
|
107
|
-
usage where a library or application wants to cache a reference
|
108
|
-
to a scaled font to speed up the computation of metrics.
|
109
|
-
</p>
|
110
|
-
<p>
|
111
|
-
There are various types of scaled fonts, depending on the
|
112
|
-
<em class="firstterm">font backend</em> they use. The type of a
|
113
|
-
scaled font can be queried using <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-type"><code class="function">cairo_scaled_font_get_type()</code></a>.
|
114
|
-
</p>
|
115
|
-
<p>
|
116
|
-
Memory management of <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> is done with
|
117
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-reference"><code class="function">cairo_scaled_font_reference()</code></a> and <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy"><code class="function">cairo_scaled_font_destroy()</code></a>.</p>
|
118
|
-
<p>
|
119
|
-
|
120
|
-
</p>
|
121
|
-
</div>
|
122
|
-
<hr>
|
123
|
-
<div class="refsect2" lang="en">
|
124
|
-
<a name="id2626922"></a><h3>
|
125
|
-
<a name="cairo-scaled-font-create"></a>cairo_scaled_font_create ()</h3>
|
126
|
-
<a class="indexterm" name="id2626933"></a><pre class="programlisting"><a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* cairo_scaled_font_create (<a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a> *font_face,
|
127
|
-
const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix,
|
128
|
-
const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm,
|
129
|
-
const <a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
130
|
-
<p>
|
131
|
-
Creates a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> object from a font face and matrices that
|
132
|
-
describe the size of the font and the environment in which it will
|
133
|
-
be used.</p>
|
134
|
-
<p>
|
135
|
-
|
136
|
-
</p>
|
137
|
-
<div class="variablelist"><table border="0">
|
138
|
-
<col align="left" valign="top">
|
139
|
-
<tbody>
|
140
|
-
<tr>
|
141
|
-
<td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
|
142
|
-
<td> a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a>
|
143
|
-
</td>
|
144
|
-
</tr>
|
145
|
-
<tr>
|
146
|
-
<td><p><span class="term"><em class="parameter"><code>font_matrix</code></em> :</span></p></td>
|
147
|
-
<td> font space to user space transformation matrix for the
|
148
|
-
font. In the simplest case of a N point font, this matrix is
|
149
|
-
just a scale by N, but it can also be used to shear the font
|
150
|
-
or stretch it unequally along the two axes. See
|
151
|
-
<a class="link" href="cairo-Text.html#cairo-set-font-matrix"><code class="function">cairo_set_font_matrix()</code></a>.
|
152
|
-
</td>
|
153
|
-
</tr>
|
154
|
-
<tr>
|
155
|
-
<td><p><span class="term"><em class="parameter"><code>ctm</code></em> :</span></p></td>
|
156
|
-
<td> user to device transformation matrix with which the font will
|
157
|
-
be used.
|
158
|
-
</td>
|
159
|
-
</tr>
|
160
|
-
<tr>
|
161
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
162
|
-
<td> options to use when getting metrics for the font and
|
163
|
-
rendering with it. A <code class="literal">NULL</code> pointer will be interpreted as
|
164
|
-
meaning the default options.
|
165
|
-
</td>
|
166
|
-
</tr>
|
167
|
-
<tr>
|
168
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
169
|
-
<td> a newly created <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>. Destroy with
|
170
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy"><code class="function">cairo_scaled_font_destroy()</code></a>
|
171
|
-
</td>
|
172
|
-
</tr>
|
173
|
-
</tbody>
|
174
|
-
</table></div>
|
175
|
-
</div>
|
176
|
-
<hr>
|
177
|
-
<div class="refsect2" lang="en">
|
178
|
-
<a name="id2627117"></a><h3>
|
179
|
-
<a name="cairo-scaled-font-reference"></a>cairo_scaled_font_reference ()</h3>
|
180
|
-
<a class="indexterm" name="id2627128"></a><pre class="programlisting"><a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a>* cairo_scaled_font_reference (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
181
|
-
<p>
|
182
|
-
Increases the reference count on <em class="parameter"><code>scaled_font</code></em> by one. This prevents
|
183
|
-
<em class="parameter"><code>scaled_font</code></em> from being destroyed until a matching call to
|
184
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-destroy"><code class="function">cairo_scaled_font_destroy()</code></a> is made.
|
185
|
-
</p>
|
186
|
-
<p>
|
187
|
-
The number of references to a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a> can be get using
|
188
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-get-reference-count"><code class="function">cairo_scaled_font_get_reference_count()</code></a>.</p>
|
189
|
-
<p>
|
190
|
-
|
191
|
-
</p>
|
192
|
-
<div class="variablelist"><table border="0">
|
193
|
-
<col align="left" valign="top">
|
194
|
-
<tbody>
|
195
|
-
<tr>
|
196
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
197
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>, (may be <code class="literal">NULL</code> in which case
|
198
|
-
this function does nothing)
|
199
|
-
</td>
|
200
|
-
</tr>
|
201
|
-
<tr>
|
202
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
203
|
-
<td> the referenced <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
204
|
-
</td>
|
205
|
-
</tr>
|
206
|
-
</tbody>
|
207
|
-
</table></div>
|
208
|
-
</div>
|
209
|
-
<hr>
|
210
|
-
<div class="refsect2" lang="en">
|
211
|
-
<a name="id2651931"></a><h3>
|
212
|
-
<a name="cairo-scaled-font-destroy"></a>cairo_scaled_font_destroy ()</h3>
|
213
|
-
<a class="indexterm" name="id2651942"></a><pre class="programlisting">void cairo_scaled_font_destroy (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
214
|
-
<p>
|
215
|
-
Decreases the reference count on <em class="parameter"><code>font</code></em> by one. If the result
|
216
|
-
is zero, then <em class="parameter"><code>font</code></em> and all associated resources are freed.
|
217
|
-
See <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-reference"><code class="function">cairo_scaled_font_reference()</code></a>.</p>
|
218
|
-
<p>
|
219
|
-
|
220
|
-
</p>
|
221
|
-
<div class="variablelist"><table border="0">
|
222
|
-
<col align="left" valign="top">
|
223
|
-
<tbody><tr>
|
224
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
225
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
226
|
-
</td>
|
227
|
-
</tr></tbody>
|
228
|
-
</table></div>
|
229
|
-
</div>
|
230
|
-
<hr>
|
231
|
-
<div class="refsect2" lang="en">
|
232
|
-
<a name="id2652014"></a><h3>
|
233
|
-
<a name="cairo-scaled-font-status"></a>cairo_scaled_font_status ()</h3>
|
234
|
-
<a class="indexterm" name="id2652024"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_scaled_font_status (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
235
|
-
<p>
|
236
|
-
Checks whether an error has previously occurred for this
|
237
|
-
scaled_font.</p>
|
238
|
-
<p>
|
239
|
-
|
240
|
-
</p>
|
241
|
-
<div class="variablelist"><table border="0">
|
242
|
-
<col align="left" valign="top">
|
243
|
-
<tbody>
|
244
|
-
<tr>
|
245
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
246
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
247
|
-
</td>
|
248
|
-
</tr>
|
249
|
-
<tr>
|
250
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
251
|
-
<td> <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or another error such as
|
252
|
-
<a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>.
|
253
|
-
</td>
|
254
|
-
</tr>
|
255
|
-
</tbody>
|
256
|
-
</table></div>
|
257
|
-
</div>
|
258
|
-
<hr>
|
259
|
-
<div class="refsect2" lang="en">
|
260
|
-
<a name="id2652109"></a><h3>
|
261
|
-
<a name="cairo-font-extents-t"></a>cairo_font_extents_t</h3>
|
262
|
-
<a class="indexterm" name="id2652120"></a><pre class="programlisting">typedef struct {
|
263
|
-
double ascent;
|
264
|
-
double descent;
|
265
|
-
double height;
|
266
|
-
double max_x_advance;
|
267
|
-
double max_y_advance;
|
268
|
-
} cairo_font_extents_t;
|
269
|
-
</pre>
|
270
|
-
<p>
|
271
|
-
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t"><span class="type">cairo_font_extents_t</span></a> structure stores metric information for
|
272
|
-
a font. Values are given in the current user-space coordinate
|
273
|
-
system.
|
274
|
-
</p>
|
275
|
-
<p>
|
276
|
-
Because font metrics are in user-space coordinates, they are
|
277
|
-
mostly, but not entirely, independent of the current transformation
|
278
|
-
matrix. If you call <code class="literal">cairo_scale(cr, 2.0, 2.0)</code>,
|
279
|
-
text will be drawn twice as big, but the reported text extents will
|
280
|
-
not be doubled. They will change slightly due to hinting (so you
|
281
|
-
can't assume that metrics are independent of the transformation
|
282
|
-
matrix), but otherwise will remain unchanged.</p>
|
283
|
-
<p>
|
284
|
-
|
285
|
-
</p>
|
286
|
-
<div class="variablelist"><table border="0">
|
287
|
-
<col align="left" valign="top">
|
288
|
-
<tbody>
|
289
|
-
<tr>
|
290
|
-
<td><p><span class="term">double <em class="structfield"><code>ascent</code></em>;</span></p></td>
|
291
|
-
<td> the distance that the font extends above the baseline.
|
292
|
-
Note that this is not always exactly equal to the maximum
|
293
|
-
of the extents of all the glyphs in the font, but rather
|
294
|
-
is picked to express the font designer's intent as to
|
295
|
-
how the font should align with elements above it.
|
296
|
-
</td>
|
297
|
-
</tr>
|
298
|
-
<tr>
|
299
|
-
<td><p><span class="term">double <em class="structfield"><code>descent</code></em>;</span></p></td>
|
300
|
-
<td> the distance that the font extends below the baseline.
|
301
|
-
This value is positive for typical fonts that include
|
302
|
-
portions below the baseline. Note that this is not always
|
303
|
-
exactly equal to the maximum of the extents of all the
|
304
|
-
glyphs in the font, but rather is picked to express the
|
305
|
-
font designer's intent as to how the the font should
|
306
|
-
align with elements below it.
|
307
|
-
</td>
|
308
|
-
</tr>
|
309
|
-
<tr>
|
310
|
-
<td><p><span class="term">double <em class="structfield"><code>height</code></em>;</span></p></td>
|
311
|
-
<td> the recommended vertical distance between baselines when
|
312
|
-
setting consecutive lines of text with the font. This
|
313
|
-
is greater than <em class="parameter"><code>ascent</code></em>+<em class="parameter"><code>descent</code></em> by a
|
314
|
-
quantity known as the <em class="firstterm">line spacing</em>
|
315
|
-
or <em class="firstterm">external leading</em>. When space
|
316
|
-
is at a premium, most fonts can be set with only
|
317
|
-
a distance of <em class="parameter"><code>ascent</code></em>+<em class="parameter"><code>descent</code></em> between lines.
|
318
|
-
</td>
|
319
|
-
</tr>
|
320
|
-
<tr>
|
321
|
-
<td><p><span class="term">double <em class="structfield"><code>max_x_advance</code></em>;</span></p></td>
|
322
|
-
<td> the maximum distance in the X direction that
|
323
|
-
the the origin is advanced for any glyph in the font.
|
324
|
-
</td>
|
325
|
-
</tr>
|
326
|
-
<tr>
|
327
|
-
<td><p><span class="term">double <em class="structfield"><code>max_y_advance</code></em>;</span></p></td>
|
328
|
-
<td> the maximum distance in the Y direction that
|
329
|
-
the the origin is advanced for any glyph in the font.
|
330
|
-
this will be zero for normal fonts used for horizontal
|
331
|
-
writing. (The scripts of East Asia are sometimes written
|
332
|
-
vertically.)
|
333
|
-
</td>
|
334
|
-
</tr>
|
335
|
-
</tbody>
|
336
|
-
</table></div>
|
337
|
-
</div>
|
338
|
-
<hr>
|
339
|
-
<div class="refsect2" lang="en">
|
340
|
-
<a name="id2652328"></a><h3>
|
341
|
-
<a name="cairo-scaled-font-extents"></a>cairo_scaled_font_extents ()</h3>
|
342
|
-
<a class="indexterm" name="id2652340"></a><pre class="programlisting">void cairo_scaled_font_extents (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
343
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t">cairo_font_extents_t</a> *extents);</pre>
|
344
|
-
<p>
|
345
|
-
Gets the metrics for a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>.</p>
|
346
|
-
<p>
|
347
|
-
|
348
|
-
</p>
|
349
|
-
<div class="variablelist"><table border="0">
|
350
|
-
<col align="left" valign="top">
|
351
|
-
<tbody>
|
352
|
-
<tr>
|
353
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
354
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
355
|
-
</td>
|
356
|
-
</tr>
|
357
|
-
<tr>
|
358
|
-
<td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
|
359
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-font-extents-t"><span class="type">cairo_font_extents_t</span></a> which to store the retrieved extents.
|
360
|
-
</td>
|
361
|
-
</tr>
|
362
|
-
</tbody>
|
363
|
-
</table></div>
|
364
|
-
</div>
|
365
|
-
<hr>
|
366
|
-
<div class="refsect2" lang="en">
|
367
|
-
<a name="id2652432"></a><h3>
|
368
|
-
<a name="cairo-text-extents-t"></a>cairo_text_extents_t</h3>
|
369
|
-
<a class="indexterm" name="id2652443"></a><pre class="programlisting">typedef struct {
|
370
|
-
double x_bearing;
|
371
|
-
double y_bearing;
|
372
|
-
double width;
|
373
|
-
double height;
|
374
|
-
double x_advance;
|
375
|
-
double y_advance;
|
376
|
-
} cairo_text_extents_t;
|
377
|
-
</pre>
|
378
|
-
<p>
|
379
|
-
The <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t"><span class="type">cairo_text_extents_t</span></a> structure stores the extents of a single
|
380
|
-
glyph or a string of glyphs in user-space coordinates. Because text
|
381
|
-
extents are in user-space coordinates, they are mostly, but not
|
382
|
-
entirely, independent of the current transformation matrix. If you call
|
383
|
-
<code class="literal">cairo_scale(cr, 2.0, 2.0)</code>, text will
|
384
|
-
be drawn twice as big, but the reported text extents will not be
|
385
|
-
doubled. They will change slightly due to hinting (so you can't
|
386
|
-
assume that metrics are independent of the transformation matrix),
|
387
|
-
but otherwise will remain unchanged.</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">double <em class="structfield"><code>x_bearing</code></em>;</span></p></td>
|
396
|
-
<td> the horizontal distance from the origin to the
|
397
|
-
leftmost part of the glyphs as drawn. Positive if the
|
398
|
-
glyphs lie entirely to the right of the origin.
|
399
|
-
</td>
|
400
|
-
</tr>
|
401
|
-
<tr>
|
402
|
-
<td><p><span class="term">double <em class="structfield"><code>y_bearing</code></em>;</span></p></td>
|
403
|
-
<td> the vertical distance from the origin to the
|
404
|
-
topmost part of the glyphs as drawn. Positive only if the
|
405
|
-
glyphs lie completely below the origin; will usually be
|
406
|
-
negative.
|
407
|
-
</td>
|
408
|
-
</tr>
|
409
|
-
<tr>
|
410
|
-
<td><p><span class="term">double <em class="structfield"><code>width</code></em>;</span></p></td>
|
411
|
-
<td> width of the glyphs as drawn
|
412
|
-
</td>
|
413
|
-
</tr>
|
414
|
-
<tr>
|
415
|
-
<td><p><span class="term">double <em class="structfield"><code>height</code></em>;</span></p></td>
|
416
|
-
<td> height of the glyphs as drawn
|
417
|
-
</td>
|
418
|
-
</tr>
|
419
|
-
<tr>
|
420
|
-
<td><p><span class="term">double <em class="structfield"><code>x_advance</code></em>;</span></p></td>
|
421
|
-
<td>distance to advance in the X direction
|
422
|
-
after drawing these glyphs
|
423
|
-
</td>
|
424
|
-
</tr>
|
425
|
-
<tr>
|
426
|
-
<td><p><span class="term">double <em class="structfield"><code>y_advance</code></em>;</span></p></td>
|
427
|
-
<td> distance to advance in the Y direction
|
428
|
-
after drawing these glyphs. Will typically be zero except
|
429
|
-
for vertical text layout as found in East-Asian languages.
|
430
|
-
</td>
|
431
|
-
</tr>
|
432
|
-
</tbody>
|
433
|
-
</table></div>
|
434
|
-
</div>
|
435
|
-
<hr>
|
436
|
-
<div class="refsect2" lang="en">
|
437
|
-
<a name="id2652624"></a><h3>
|
438
|
-
<a name="cairo-scaled-font-text-extents"></a>cairo_scaled_font_text_extents ()</h3>
|
439
|
-
<a class="indexterm" name="id2652639"></a><pre class="programlisting">void cairo_scaled_font_text_extents (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
440
|
-
const char *utf8,
|
441
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);</pre>
|
442
|
-
<p>
|
443
|
-
Gets the extents for a string of text. The extents describe a
|
444
|
-
user-space rectangle that encloses the "inked" portion of the text
|
445
|
-
drawn at the origin (0,0) (as it would be drawn by <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>
|
446
|
-
if the cairo graphics state were set to the same font_face,
|
447
|
-
font_matrix, ctm, and font_options as <em class="parameter"><code>scaled_font</code></em>). Additionally,
|
448
|
-
the x_advance and y_advance values indicate the amount by which the
|
449
|
-
current point would be advanced by <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>.
|
450
|
-
</p>
|
451
|
-
<p>
|
452
|
-
Note that whitespace characters do not directly contribute to the
|
453
|
-
size of the rectangle (extents.width and extents.height). They do
|
454
|
-
contribute indirectly by changing the position of non-whitespace
|
455
|
-
characters. In particular, trailing whitespace characters are
|
456
|
-
likely to not affect the size of the rectangle, though they will
|
457
|
-
affect the x_advance and y_advance values.</p>
|
458
|
-
<p>
|
459
|
-
|
460
|
-
</p>
|
461
|
-
<div class="variablelist"><table border="0">
|
462
|
-
<col align="left" valign="top">
|
463
|
-
<tbody>
|
464
|
-
<tr>
|
465
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
466
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
467
|
-
</td>
|
468
|
-
</tr>
|
469
|
-
<tr>
|
470
|
-
<td><p><span class="term"><em class="parameter"><code>utf8</code></em> :</span></p></td>
|
471
|
-
<td> a string of text, encoded in UTF-8
|
472
|
-
</td>
|
473
|
-
</tr>
|
474
|
-
<tr>
|
475
|
-
<td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
|
476
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t"><span class="type">cairo_text_extents_t</span></a> which to store the retrieved extents.
|
477
|
-
</td>
|
478
|
-
</tr>
|
479
|
-
</tbody>
|
480
|
-
</table></div>
|
481
|
-
<p class="since">Since 1.2
|
482
|
-
</p>
|
483
|
-
</div>
|
484
|
-
<hr>
|
485
|
-
<div class="refsect2" lang="en">
|
486
|
-
<a name="id2652795"></a><h3>
|
487
|
-
<a name="cairo-scaled-font-glyph-extents"></a>cairo_scaled_font_glyph_extents ()</h3>
|
488
|
-
<a class="indexterm" name="id2652808"></a><pre class="programlisting">void cairo_scaled_font_glyph_extents (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
489
|
-
const <a class="link" href="cairo-Text.html#cairo-glyph-t">cairo_glyph_t</a> *glyphs,
|
490
|
-
int num_glyphs,
|
491
|
-
<a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t">cairo_text_extents_t</a> *extents);</pre>
|
492
|
-
<p>
|
493
|
-
Gets the extents for an array of glyphs. The extents describe a
|
494
|
-
user-space rectangle that encloses the "inked" portion of the
|
495
|
-
glyphs, (as they would be drawn by <a class="link" href="cairo-Text.html#cairo-show-glyphs"><code class="function">cairo_show_glyphs()</code></a> if the cairo
|
496
|
-
graphics state were set to the same font_face, font_matrix, ctm,
|
497
|
-
and font_options as <em class="parameter"><code>scaled_font</code></em>). Additionally, the x_advance and
|
498
|
-
y_advance values indicate the amount by which the current point
|
499
|
-
would be advanced by <a class="link" href="cairo-Text.html#cairo-show-glyphs"><code class="function">cairo_show_glyphs()</code></a>.
|
500
|
-
</p>
|
501
|
-
<p>
|
502
|
-
Note that whitespace glyphs do not contribute to the size of the
|
503
|
-
rectangle (extents.width and extents.height).</p>
|
504
|
-
<p>
|
505
|
-
|
506
|
-
</p>
|
507
|
-
<div class="variablelist"><table border="0">
|
508
|
-
<col align="left" valign="top">
|
509
|
-
<tbody>
|
510
|
-
<tr>
|
511
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
512
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
513
|
-
</td>
|
514
|
-
</tr>
|
515
|
-
<tr>
|
516
|
-
<td><p><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></p></td>
|
517
|
-
<td> an array of glyph IDs with X and Y offsets.
|
518
|
-
</td>
|
519
|
-
</tr>
|
520
|
-
<tr>
|
521
|
-
<td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em> :</span></p></td>
|
522
|
-
<td> the number of glyphs in the <em class="parameter"><code>glyphs</code></em> array
|
523
|
-
</td>
|
524
|
-
</tr>
|
525
|
-
<tr>
|
526
|
-
<td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
|
527
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-text-extents-t"><span class="type">cairo_text_extents_t</span></a> which to store the retrieved extents.
|
528
|
-
</td>
|
529
|
-
</tr>
|
530
|
-
</tbody>
|
531
|
-
</table></div>
|
532
|
-
</div>
|
533
|
-
<hr>
|
534
|
-
<div class="refsect2" lang="en">
|
535
|
-
<a name="id2652980"></a><h3>
|
536
|
-
<a name="cairo-scaled-font-get-font-face"></a>cairo_scaled_font_get_font_face ()</h3>
|
537
|
-
<a class="indexterm" name="id2652996"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t">cairo_font_face_t</a>* cairo_scaled_font_get_font_face (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
538
|
-
<p>
|
539
|
-
Gets the font face that this scaled font was created for.</p>
|
540
|
-
<p>
|
541
|
-
|
542
|
-
</p>
|
543
|
-
<div class="variablelist"><table border="0">
|
544
|
-
<col align="left" valign="top">
|
545
|
-
<tbody>
|
546
|
-
<tr>
|
547
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
548
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
549
|
-
</td>
|
550
|
-
</tr>
|
551
|
-
<tr>
|
552
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
553
|
-
<td> The <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a> with which <em class="parameter"><code>scaled_font</code></em> was
|
554
|
-
created.
|
555
|
-
|
556
|
-
</td>
|
557
|
-
</tr>
|
558
|
-
</tbody>
|
559
|
-
</table></div>
|
560
|
-
<p class="since">Since 1.2
|
561
|
-
</p>
|
562
|
-
</div>
|
563
|
-
<hr>
|
564
|
-
<div class="refsect2" lang="en">
|
565
|
-
<a name="id2653085"></a><h3>
|
566
|
-
<a name="cairo-scaled-font-get-font-options"></a>cairo_scaled_font_get_font_options ()</h3>
|
567
|
-
<a class="indexterm" name="id2653102"></a><pre class="programlisting">void cairo_scaled_font_get_font_options (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
568
|
-
<a class="link" href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre>
|
569
|
-
<p>
|
570
|
-
Stores the font options with which <em class="parameter"><code>scaled_font</code></em> was created into
|
571
|
-
<em class="parameter"><code>options</code></em>.</p>
|
572
|
-
<p>
|
573
|
-
|
574
|
-
</p>
|
575
|
-
<div class="variablelist"><table border="0">
|
576
|
-
<col align="left" valign="top">
|
577
|
-
<tbody>
|
578
|
-
<tr>
|
579
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
580
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
581
|
-
</td>
|
582
|
-
</tr>
|
583
|
-
<tr>
|
584
|
-
<td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
|
585
|
-
<td> return value for the font options
|
586
|
-
</td>
|
587
|
-
</tr>
|
588
|
-
</tbody>
|
589
|
-
</table></div>
|
590
|
-
<p class="since">Since 1.2
|
591
|
-
</p>
|
592
|
-
</div>
|
593
|
-
<hr>
|
594
|
-
<div class="refsect2" lang="en">
|
595
|
-
<a name="id2653185"></a><h3>
|
596
|
-
<a name="cairo-scaled-font-get-font-matrix"></a>cairo_scaled_font_get_font_matrix ()</h3>
|
597
|
-
<a class="indexterm" name="id2653200"></a><pre class="programlisting">void cairo_scaled_font_get_font_matrix (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
598
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *font_matrix);</pre>
|
599
|
-
<p>
|
600
|
-
Stores the font matrix with which <em class="parameter"><code>scaled_font</code></em> was created into
|
601
|
-
<em class="parameter"><code>matrix</code></em>.</p>
|
602
|
-
<p>
|
603
|
-
|
604
|
-
</p>
|
605
|
-
<div class="variablelist"><table border="0">
|
606
|
-
<col align="left" valign="top">
|
607
|
-
<tbody>
|
608
|
-
<tr>
|
609
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
610
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
611
|
-
</td>
|
612
|
-
</tr>
|
613
|
-
<tr>
|
614
|
-
<td><p><span class="term"><em class="parameter"><code>font_matrix</code></em> :</span></p></td>
|
615
|
-
<td> return value for the matrix
|
616
|
-
</td>
|
617
|
-
</tr>
|
618
|
-
</tbody>
|
619
|
-
</table></div>
|
620
|
-
<p class="since">Since 1.2
|
621
|
-
</p>
|
622
|
-
</div>
|
623
|
-
<hr>
|
624
|
-
<div class="refsect2" lang="en">
|
625
|
-
<a name="id2653288"></a><h3>
|
626
|
-
<a name="cairo-scaled-font-get-ctm"></a>cairo_scaled_font_get_ctm ()</h3>
|
627
|
-
<a class="indexterm" name="id2653301"></a><pre class="programlisting">void cairo_scaled_font_get_ctm (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
628
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *ctm);</pre>
|
629
|
-
<p>
|
630
|
-
Stores the CTM with which <em class="parameter"><code>scaled_font</code></em> was created into <em class="parameter"><code>ctm</code></em>.</p>
|
631
|
-
<p>
|
632
|
-
|
633
|
-
</p>
|
634
|
-
<div class="variablelist"><table border="0">
|
635
|
-
<col align="left" valign="top">
|
636
|
-
<tbody>
|
637
|
-
<tr>
|
638
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
639
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
640
|
-
</td>
|
641
|
-
</tr>
|
642
|
-
<tr>
|
643
|
-
<td><p><span class="term"><em class="parameter"><code>ctm</code></em> :</span></p></td>
|
644
|
-
<td> return value for the CTM
|
645
|
-
</td>
|
646
|
-
</tr>
|
647
|
-
</tbody>
|
648
|
-
</table></div>
|
649
|
-
<p class="since">Since 1.2
|
650
|
-
</p>
|
651
|
-
</div>
|
652
|
-
<hr>
|
653
|
-
<div class="refsect2" lang="en">
|
654
|
-
<a name="id2653387"></a><h3>
|
655
|
-
<a name="cairo-scaled-font-get-type"></a>cairo_scaled_font_get_type ()</h3>
|
656
|
-
<a class="indexterm" name="id2653400"></a><pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-type-t">cairo_font_type_t</a> cairo_scaled_font_get_type (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
657
|
-
<p>
|
658
|
-
This function returns the type of the backend used to create
|
659
|
-
a scaled font. See <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-type-t"><span class="type">cairo_font_type_t</span></a> for available types.</p>
|
660
|
-
<p>
|
661
|
-
|
662
|
-
</p>
|
663
|
-
<div class="variablelist"><table border="0">
|
664
|
-
<col align="left" valign="top">
|
665
|
-
<tbody>
|
666
|
-
<tr>
|
667
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
668
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
669
|
-
</td>
|
670
|
-
</tr>
|
671
|
-
<tr>
|
672
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
673
|
-
<td> The type of <em class="parameter"><code>scaled_font</code></em>.
|
674
|
-
|
675
|
-
</td>
|
676
|
-
</tr>
|
677
|
-
</tbody>
|
678
|
-
</table></div>
|
679
|
-
<p class="since">Since 1.2
|
680
|
-
</p>
|
681
|
-
</div>
|
682
|
-
<hr>
|
683
|
-
<div class="refsect2" lang="en">
|
684
|
-
<a name="id2653478"></a><h3>
|
685
|
-
<a name="cairo-scaled-font-get-reference-count"></a>cairo_scaled_font_get_reference_count ()</h3>
|
686
|
-
<a class="indexterm" name="id2653493"></a><pre class="programlisting">unsigned int cairo_scaled_font_get_reference_count
|
687
|
-
(<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font);</pre>
|
688
|
-
<p>
|
689
|
-
Returns the current reference count of <em class="parameter"><code>scaled_font</code></em>.</p>
|
690
|
-
<p>
|
691
|
-
|
692
|
-
</p>
|
693
|
-
<div class="variablelist"><table border="0">
|
694
|
-
<col align="left" valign="top">
|
695
|
-
<tbody>
|
696
|
-
<tr>
|
697
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
698
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
699
|
-
</td>
|
700
|
-
</tr>
|
701
|
-
<tr>
|
702
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
703
|
-
<td> the current reference count of <em class="parameter"><code>scaled_font</code></em>. If the
|
704
|
-
object is a nil object, 0 will be returned.
|
705
|
-
|
706
|
-
</td>
|
707
|
-
</tr>
|
708
|
-
</tbody>
|
709
|
-
</table></div>
|
710
|
-
<p class="since">Since 1.4
|
711
|
-
</p>
|
712
|
-
</div>
|
713
|
-
<hr>
|
714
|
-
<div class="refsect2" lang="en">
|
715
|
-
<a name="id2653575"></a><h3>
|
716
|
-
<a name="cairo-scaled-font-set-user-data"></a>cairo_scaled_font_set_user_data ()</h3>
|
717
|
-
<a class="indexterm" name="id2653589"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_scaled_font_set_user_data (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
718
|
-
const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key,
|
719
|
-
void *user_data,
|
720
|
-
<a class="link" href="cairo-Types.html#cairo-destroy-func-t">cairo_destroy_func_t</a> destroy);</pre>
|
721
|
-
<p>
|
722
|
-
Attach user data to <em class="parameter"><code>scaled_font</code></em>. To remove user data from a surface,
|
723
|
-
call this function with the key that was used to set it and <code class="literal">NULL</code>
|
724
|
-
for <em class="parameter"><code>data</code></em>.</p>
|
725
|
-
<p>
|
726
|
-
|
727
|
-
</p>
|
728
|
-
<div class="variablelist"><table border="0">
|
729
|
-
<col align="left" valign="top">
|
730
|
-
<tbody>
|
731
|
-
<tr>
|
732
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
733
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
734
|
-
</td>
|
735
|
-
</tr>
|
736
|
-
<tr>
|
737
|
-
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
|
738
|
-
<td> the address of a <a class="link" href="cairo-Types.html#cairo-user-data-key-t"><span class="type">cairo_user_data_key_t</span></a> to attach the user data to
|
739
|
-
</td>
|
740
|
-
</tr>
|
741
|
-
<tr>
|
742
|
-
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
743
|
-
<td> the user data to attach to the <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
744
|
-
</td>
|
745
|
-
</tr>
|
746
|
-
<tr>
|
747
|
-
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
|
748
|
-
<td> a <a class="link" href="cairo-Types.html#cairo-destroy-func-t"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
|
749
|
-
<a class="link" href="cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> is destroyed or when new user data is attached using the
|
750
|
-
same key.
|
751
|
-
</td>
|
752
|
-
</tr>
|
753
|
-
<tr>
|
754
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
755
|
-
<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> if a
|
756
|
-
slot could not be allocated for the user data.
|
757
|
-
|
758
|
-
</td>
|
759
|
-
</tr>
|
760
|
-
</tbody>
|
761
|
-
</table></div>
|
762
|
-
<p class="since">Since 1.4
|
763
|
-
</p>
|
764
|
-
</div>
|
765
|
-
<hr>
|
766
|
-
<div class="refsect2" lang="en">
|
767
|
-
<a name="id2653780"></a><h3>
|
768
|
-
<a name="cairo-scaled-font-get-user-data"></a>cairo_scaled_font_get_user_data ()</h3>
|
769
|
-
<a class="indexterm" name="id2653794"></a><pre class="programlisting">void* cairo_scaled_font_get_user_data (<a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t">cairo_scaled_font_t</a> *scaled_font,
|
770
|
-
const <a class="link" href="cairo-Types.html#cairo-user-data-key-t">cairo_user_data_key_t</a> *key);</pre>
|
771
|
-
<p>
|
772
|
-
Return user data previously attached to <em class="parameter"><code>scaled_font</code></em> using the
|
773
|
-
specified key. If no user data has been attached with the given
|
774
|
-
key this function returns <code class="literal">NULL</code>.</p>
|
775
|
-
<p>
|
776
|
-
|
777
|
-
</p>
|
778
|
-
<div class="variablelist"><table border="0">
|
779
|
-
<col align="left" valign="top">
|
780
|
-
<tbody>
|
781
|
-
<tr>
|
782
|
-
<td><p><span class="term"><em class="parameter"><code>scaled_font</code></em> :</span></p></td>
|
783
|
-
<td> a <a class="link" href="cairo-Scaled-Fonts.html#cairo-scaled-font-t"><span class="type">cairo_scaled_font_t</span></a>
|
784
|
-
</td>
|
785
|
-
</tr>
|
786
|
-
<tr>
|
787
|
-
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
|
788
|
-
<td> the address of the <a class="link" href="cairo-Types.html#cairo-user-data-key-t"><span class="type">cairo_user_data_key_t</span></a> the user data was
|
789
|
-
attached to
|
790
|
-
</td>
|
791
|
-
</tr>
|
792
|
-
<tr>
|
793
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
794
|
-
<td> the user data previously attached or <code class="literal">NULL</code>.
|
795
|
-
|
796
|
-
</td>
|
797
|
-
</tr>
|
798
|
-
</tbody>
|
799
|
-
</table></div>
|
800
|
-
<p class="since">Since 1.4
|
801
|
-
</p>
|
802
|
-
</div>
|
803
|
-
</div>
|
804
|
-
<div class="refsect1" lang="en">
|
805
|
-
<a name="id2653913"></a><h2>See Also</h2>
|
806
|
-
<p>
|
807
|
-
</p>
|
808
|
-
<div class="itemizedlist"><ul type="disc">
|
809
|
-
<li><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t"><span class="type">cairo_font_face_t</span></a></li>
|
810
|
-
<li><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t"><span class="type">cairo_matrix_t</span></a></li>
|
811
|
-
<li><a class="link" href="cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a></li>
|
812
|
-
</ul></div>
|
813
|
-
<p>
|
814
|
-
</p>
|
815
|
-
</div>
|
816
|
-
<div class="refsect1" lang="en">
|
817
|
-
<a name="id2653948"></a><div class="refsect2" lang="en"><a name="id2653949"></a></div>
|
818
|
-
<hr>
|
819
|
-
<div class="refsect2" lang="en"><a name="id2653950"></a></div>
|
820
|
-
</div>
|
821
|
-
</div>
|
822
|
-
</body>
|
823
|
-
</html>
|