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       to_string
54           Returns a Pango-style font string, "Sans Italic 14".
55

SEE ALSO

57       Text::Layout::FontConfig, Text::Layout.
58

AUTHOR

60       Johan Vromans, "<JV at CPAN dot org>"
61

SUPPORT

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

LICENSE

76       See Text::Layout.
77
78
79
80perl v5.34.0                      2021-08-21   Text::Layout::FontDescriptor(3)
Impressum