Text::Layout::FontDescriptor(3pm) User Contributed Perl Documentation Text::Layout::FontDescriptor(3pm)

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.

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".

Text::Layout::FontConfig, Text::Layout.

Johan Vromans, "<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.

2024-02-23 perl v5.38.2