summaryrefslogtreecommitdiff
path: root/docs/tmpl/fonts.sgml
blob: 715fbe6f7f5c7f675af2169a1b8f7bd9d181e2de (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
<!-- ##### SECTION Title ##### -->
Fonts

<!-- ##### SECTION Short_Description ##### -->
Structures representing abstract fonts.

<!-- ##### SECTION Long_Description ##### -->
<para>
Pango supports a flexible architecture where a
particular rendering architecture can supply an
implementation of fonts. The #PangoFont and
#PangoCFont structures represent an abstract
rendering-system-indepent font, and a
<firstterm>component</firstterm> of such a font,
respectively.
</para>

<!-- ##### SECTION See_Also ##### -->
<para>

</para>

<!-- ##### STRUCT PangoFont ##### -->
<para>
The #PangoFont structure is used to represent
a font in a rendering-system-independent matter.
To create an implementation of a #PangoFont,
the rendering-system specific code should malloc
a larger structure that contains a nested
#PangoFont, fill in the klass member of
the nested #PangoFont with a pointer to
a appropriate #PangoFontClass, then call
pango_font_init() on the structure.
</para>
<para>
The #PangoFont 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>#PangoFontClass *klass;</entry>
<entry>a pointer to the <firstterm>class structure</firstterm>
       for this font.</entry>
</row>
</tbody></tgroup></informaltable>
</para>

@klass: 

<!-- ##### STRUCT PangoFontClass ##### -->
<para>
The PangoFontClass structure contains the virtual
functions for an implementation of a a PangoFont.

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>


<!-- ##### FUNCTION pango_font_init ##### -->
<para>

</para>

@font: 


<!-- ##### FUNCTION pango_font_ref ##### -->
<para>

</para>

@font: 


<!-- ##### FUNCTION pango_font_unref ##### -->
<para>

</para>

@font: 


<!-- ##### FUNCTION pango_font_get_data ##### -->
<para>

</para>

@font: 
@key: 
@Returns: 


<!-- ##### FUNCTION pango_font_set_data ##### -->
<para>

</para>

@font: 
@key: 
@data: 
@destroy_func: