Text::Layout::FontDescriptor - font description for Text::Layout
Font descriptors are used internally by Text::Layout and Text::Layout::FontConfig.
Creates a new FontDescriptor object.
Attributes:
The Family, style, and weight of this font. There are mandatory. For defaults, use an empty string.
Optional, font size.
The actual font data.
A code reference to call to actually create/load the font if necessary.
Loading will store the font data in the font property.
font
Returns the actual font data for the font this descriptor describes.
If necessary, the backend will be called to create/load the font.
Accessors to the font family, style, and weight.
Readonly.
Sets/gets the size property of the font.
Sets/gets the direction property of the font.
Returns a Pango-style font string, Sans Italic 14.
Sans Italic 14
Text::Layout::FontConfig, Text::Layout.
Johan Vromans, <JV at CPAN dot org>
<JV at CPAN dot org>
This module is part of Text::Layout.
Development takes place on GitHub: https://github.com/sciurius/perl-Text-Layout.
You can find documentation for this module with the perldoc command.
perldoc Text::Layout::FontDescriptor
Please report any bugs or feature requests using the issue tracker for Text::Layout on GitHub.
See Text::Layout.
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
To install Text::Layout, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Layout
CPAN shell
perl -MCPAN -e shell install Text::Layout
For more information on module installation, please visit the detailed CPAN module installation guide.