1Text::Layout::FontDescrUispetrorC(o3n)tributed Perl DocuTmeexntt:a:tLiaoynout::FontDescriptor(3)
2
3
4

NAME

6       Text::Layout::FontDescriptor - font description for Text::Layout
7

SYNOPSIS

9       Font descriptors are used internally by Text::Layout and
10       Text::Layout::FontConfig.
11

METHODS

13       new( [ %atts ] )
14           Creates a new FontDescriptor object.
15
16           Attributes:
17
18           family
19           style
20           weight
21               The Family, style, and weight of this font. There are
22               mandatory. For defaults, use an empty string.
23
24           size
25               Optional, font size.
26
27           font
28               The actual font data.
29
30           loader
31               A code reference to call to actually create/load the font if
32               necessary.
33
34               Loading will store the font data in the "font" property.
35
36       get_font
37           Returns the actual font data for the font this descriptor
38           describes.
39
40           If necessary, the backend will be called to create/load the font.
41
42       get_family
43       get_style
44       get_weight
45           Accessors to the font family, style, and weight.
46
47           Readonly.
48
49       set_size
50       get_size
51           Sets/gets the size property of the font.
52
53       set_direction
54       get_direction
55           Sets/gets the direction property of the font.
56
57       to_string
58           Returns a Pango-style font string, "Sans Italic 14".
59

SEE ALSO

61       Text::Layout::FontConfig, Text::Layout.
62

AUTHOR

64       Johan Vromans, "<JV at CPAN dot org>"
65

SUPPORT

67       This module is part of Text::Layout.
68
69       Development takes place on GitHub:
70       <https://github.com/sciurius/perl-Text-Layout>.
71
72       You can find documentation for this module with the perldoc command.
73
74         perldoc Text::Layout::FontDescriptor
75
76       Please report any bugs or feature requests using the issue tracker for
77       Text::Layout on GitHub.
78

LICENSE

80       See Text::Layout.
81

POD ERRORS

83       Hey! The above document had some coding errors, which are explained
84       below:
85
86       Around line 150:
87           '=item' outside of any '=over'
88
89
90
91perl v5.34.0                      2022-02-04   Text::Layout::FontDescriptor(3)
Impressum