Scroll to navigation

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

NAME

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

SYNOPSIS

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

METHODS

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

SEE ALSO

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

AUTHOR

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

SUPPORT

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.

LICENSE

See Text::Layout.

2024-04-23 perl v5.38.2