1Pango::FontDescription(U3s)er Contributed Perl DocumentatPiaonngo::FontDescription(3)
2
3
4

NAME

6       Pango::FontDescription - wrapper for PangoFontDescription
7

HIERARCHY

9         Glib::Boxed
10         +----Pango::FontDescription
11

METHODS

13   fontdescription = Pango::FontDescription->new
14   double = Pango->PANGO_PIXELS ($d)
15       ·   $d (double)
16
17   $desc->set_absolute_size ($size)
18       ·   $size (double)
19
20       Since: pango 1.8
21
22   boolean = $desc->better_match ($old_match, $new_match)
23       ·   $old_match (Pango::FontDescription or undef)
24
25       ·   $new_match (Pango::FontDescription)
26
27   boolean = $desc1->equal ($desc2)
28       ·   $desc2 (Pango::FontDescription)
29
30   string = $desc->get_family
31   $desc->set_family ($family)
32       ·   $family (string)
33
34   $desc->set_family_static ($family)
35       ·   $family (string)
36
37   fontdescription = Pango::FontDescription->from_string ($str)
38       ·   $str (string)
39
40   gravity = $desc->get_gravity
41       Since: pango 1.16
42
43   $desc->set_gravity ($gravity)
44       ·   $gravity (Pango::Gravity)
45
46       Since: pango 1.16
47
48   integer = $desc->hash
49   $desc->merge ($desc_to_merge, $replace_existing)
50       ·   $desc_to_merge (Pango::FontDescription)
51
52       ·   $replace_existing (boolean)
53
54   $desc->merge_static ($desc_to_merge, $replace_existing)
55       ·   $desc_to_merge (Pango::FontDescription)
56
57       ·   $replace_existing (boolean)
58
59   double = Pango->pixels ($d)
60       ·   $d (double)
61
62   double = Pango->scale
63   double = Pango->scale_large
64   double = Pango->scale_medium
65   double = Pango->scale_small
66   double = Pango->scale_x_large
67   double = Pango->scale_x_small
68   double = Pango->scale_xx_large
69   double = Pango->scale_xx_small
70   fontmask = $desc->get_set_fields
71   integer = $desc->get_size
72   boolean = $desc->get_size_is_absolute
73       Since: pango 1.8
74
75   $desc->set_size ($size)
76       ·   $size (integer)
77
78   stretch = $desc->get_stretch
79   $desc->set_stretch ($stretch)
80       ·   $stretch (Pango::Stretch)
81
82   style = $desc->get_style
83   $desc->set_style ($style)
84       ·   $style (Pango::Style)
85
86   string = $desc->to_filename
87   string = $desc->to_string
88   $desc->unset_fields ($to_unset)
89       ·   $to_unset (Pango::FontMask)
90
91   variant = $desc->get_variant
92   $desc->set_variant ($variant)
93       ·   $variant (Pango::Variant)
94
95   weight = $desc->get_weight
96   $desc->set_weight ($weight)
97       ·   $weight (Pango::Weight)
98

ENUMS AND FLAGS

100   flags Pango::FontMask
101       ·   'family' / 'PANGO_FONT_MASK_FAMILY'
102
103       ·   'style' / 'PANGO_FONT_MASK_STYLE'
104
105       ·   'variant' / 'PANGO_FONT_MASK_VARIANT'
106
107       ·   'weight' / 'PANGO_FONT_MASK_WEIGHT'
108
109       ·   'stretch' / 'PANGO_FONT_MASK_STRETCH'
110
111       ·   'size' / 'PANGO_FONT_MASK_SIZE'
112
113       ·   'gravity' / 'PANGO_FONT_MASK_GRAVITY'
114
115       ·   'variations' / 'PANGO_FONT_MASK_VARIATIONS'
116
117   enum Pango::Gravity
118       ·   'south' / 'PANGO_GRAVITY_SOUTH'
119
120       ·   'east' / 'PANGO_GRAVITY_EAST'
121
122       ·   'north' / 'PANGO_GRAVITY_NORTH'
123
124       ·   'west' / 'PANGO_GRAVITY_WEST'
125
126       ·   'auto' / 'PANGO_GRAVITY_AUTO'
127
128   enum Pango::Stretch
129       ·   'ultra-condensed' / 'PANGO_STRETCH_ULTRA_CONDENSED'
130
131       ·   'extra-condensed' / 'PANGO_STRETCH_EXTRA_CONDENSED'
132
133       ·   'condensed' / 'PANGO_STRETCH_CONDENSED'
134
135       ·   'semi-condensed' / 'PANGO_STRETCH_SEMI_CONDENSED'
136
137       ·   'normal' / 'PANGO_STRETCH_NORMAL'
138
139       ·   'semi-expanded' / 'PANGO_STRETCH_SEMI_EXPANDED'
140
141       ·   'expanded' / 'PANGO_STRETCH_EXPANDED'
142
143       ·   'extra-expanded' / 'PANGO_STRETCH_EXTRA_EXPANDED'
144
145       ·   'ultra-expanded' / 'PANGO_STRETCH_ULTRA_EXPANDED'
146
147   enum Pango::Style
148       ·   'normal' / 'PANGO_STYLE_NORMAL'
149
150       ·   'oblique' / 'PANGO_STYLE_OBLIQUE'
151
152       ·   'italic' / 'PANGO_STYLE_ITALIC'
153
154   enum Pango::Variant
155       ·   'normal' / 'PANGO_VARIANT_NORMAL'
156
157       ·   'small-caps' / 'PANGO_VARIANT_SMALL_CAPS'
158
159   enum Pango::Weight
160       ·   'thin' / 'PANGO_WEIGHT_THIN'
161
162       ·   'ultralight' / 'PANGO_WEIGHT_ULTRALIGHT'
163
164       ·   'light' / 'PANGO_WEIGHT_LIGHT'
165
166       ·   'semilight' / 'PANGO_WEIGHT_SEMILIGHT'
167
168       ·   'book' / 'PANGO_WEIGHT_BOOK'
169
170       ·   'normal' / 'PANGO_WEIGHT_NORMAL'
171
172       ·   'medium' / 'PANGO_WEIGHT_MEDIUM'
173
174       ·   'semibold' / 'PANGO_WEIGHT_SEMIBOLD'
175
176       ·   'bold' / 'PANGO_WEIGHT_BOLD'
177
178       ·   'ultrabold' / 'PANGO_WEIGHT_ULTRABOLD'
179
180       ·   'heavy' / 'PANGO_WEIGHT_HEAVY'
181
182       ·   'ultraheavy' / 'PANGO_WEIGHT_ULTRAHEAVY'
183

SEE ALSO

185       Pango, Glib::Boxed
186
188       Copyright (C) 2003-2011 by the gtk2-perl team.
189
190       This software is licensed under the LGPL.  See Pango for a full notice.
191
192
193
194perl v5.28.0                      2018-07-15         Pango::FontDescription(3)
Impressum