blob: 24361688db9ded637349a4d9d72aa184522ac69f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
<!-- ##### FUNCTION pango_cfont_init ##### -->
<para>
</para>
@font:
<!-- ##### FUNCTION pango_cfont_ref ##### -->
<para>
</para>
@font:
<!-- ##### TYPEDEF PangoGlyphIndex ##### -->
<para>
The #PangoGlyphIndex type is an integral type used to store glyph
indices.
</para>
<!-- ##### FUNCTION pango_x_find_cfont ##### -->
<para>
</para>
@font:
@charset:
@Returns:
<!-- ##### FUNCTION g_glyph_string_set_size ##### -->
<para>
</para>
@string:
@new_len:
<!-- ##### FUNCTION pango_x_xlfd_get_ranges ##### -->
<para>
</para>
@font:
@xlfd:
@ranges:
@n_ranges:
@Returns:
<!-- ##### FUNCTION g_glyph_string_free ##### -->
<para>
</para>
@string:
<!-- ##### FUNCTION pango_x_load_xlfd ##### -->
<para>
</para>
@font:
@xlfd:
@Returns:
<!-- ##### SECTION ./tmpl/pango-x.sgml:Title ##### -->
X Rendering
<!-- ##### SECTION ./tmpl/pango-x.sgml:See_Also ##### -->
<para>
</para>
<!-- ##### SECTION ./tmpl/pango-x.sgml:Short_Description ##### -->
Functions for rendering and measuring glyphs on
the X Window system.
<!-- ##### FUNCTION g_glyph_string_new ##### -->
<para>
</para>
@Returns:
<!-- ##### SECTION ./tmpl/pango-x.sgml:Long_Description ##### -->
<para>
</para>
<!-- ##### FUNCTION pango_x_list_cfonts ##### -->
<para>
</para>
@font:
@charsets:
@n_charsets:
@xlfds:
@n_xlfds:
<!-- ##### STRUCT PangoCFontClass ##### -->
<para>
The PangoCFontClass structure contains the virtual
functions for an implementation of a a PangoCFont.
It contains the following member:
<informaltable pgwide=1 frame="none" role="struct">
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
<tbody>
<row>
<entry>void (*destroy) (#PangoFont *font);</entry>
<entry>a function to free the font structure and associated resources.</entry>
</row>
</tbody></tgroup></informaltable>
</para>
<!-- ##### STRUCT PangoXCFont ##### -->
<para>
The PangoXCFont represents a component of a
composite font for the X window system. It
has the following publically accessible fields:
<informaltable pgwide=1 frame="none" role="struct">
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
<tbody>
<row>
<entry><structname>Display</structname> *display;</entry>
<entry>the X Display for which this font component was created.</entry>
</row>
<row>
<entry><structname>XFontStruct</structname> *font_struct;</entry>
<entry>the X font information for the corresponding X font.</entry>
</row>
</tbody></tgroup></informaltable>
</para>
@display:
@font_struct:
<!-- ##### FUNCTION pango_cfont_unref ##### -->
<para>
</para>
@font:
<!-- ##### STRUCT PangoCFont ##### -->
<para>
The #PangoCFont structure is used to represent a single componenent
of a font n a rendering-system-independent matter. A component of a
font is an opaque object that makes sense only to the rendering
system. A glyph (the #PangoGlyph structure) is stored as a #PangoCFont
and a numeric glyph index.
</para>
<para>
To create an implementation of a #PangoCFont,
the rendering-system specific code should malloc
a larger structure that contains a nested
#PangoCFont, fill in the klass member of
the nested #PangoCFont with a pointer to
a appropriate #PangoCFontClass, then call
pango_cfont_init() on the structure.
</para>
<para>
The #PangoCFont structure contains one member
that may be accessed by derived classes:
<informaltable pgwide=1 frame="none" role="struct">
<tgroup cols="2"><colspec colwidth="2*"><colspec colwidth="8*">
<tbody>
<row>
<entry>#PangoCFontClass *klass;</entry>
<entry>a pointer to the <firstterm>class structure</firstterm>
for this font.</entry>
</row>
</tbody></tgroup></informaltable>
</para>
@klass:
|