.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Text::Layout::FontDescriptor 3pm" .TH Text::Layout::FontDescriptor 3pm 2024-04-23 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Text::Layout::FontDescriptor \- font description for Text::Layout .SH SYNOPSIS .IX Header "SYNOPSIS" Font descriptors are used internally by Text::Layout and Text::Layout::FontConfig. .SH METHODS .IX Header "METHODS" .ie n .IP "new( [ %atts ] )" 4 .el .IP "new( [ \f(CW%atts\fR ] )" 4 .IX Item "new( [ %atts ] )" Creates a new FontDescriptor object. .Sp Attributes: .RS 4 .IP family 4 .IX Item "family" .PD 0 .IP style 4 .IX Item "style" .IP weight 4 .IX Item "weight" .PD The Family, style, and weight of this font. There are mandatory. For defaults, use an empty string. .IP size 4 .IX Item "size" Optional, font size. .IP font 4 .IX Item "font" The actual font data. .IP loader 4 .IX Item "loader" A code reference to call to actually create/load the font if necessary. .Sp Loading will store the font data in the \f(CW\*(C`font\*(C'\fR property. .RE .RS 4 .RE .IP get_font 4 .IX Item "get_font" Returns the actual font data for the font this descriptor describes. .Sp If necessary, the backend will be called to create/load the font. .IP get_family 4 .IX Item "get_family" .PD 0 .IP get_style 4 .IX Item "get_style" .IP get_weight 4 .IX Item "get_weight" .PD Accessors to the font family, style, and weight. .Sp Readonly. .IP set_size 4 .IX Item "set_size" .PD 0 .IP get_size 4 .IX Item "get_size" .PD Sets/gets the size property of the font. .IP set_direction 4 .IX Item "set_direction" .PD 0 .IP get_direction 4 .IX Item "get_direction" .PD Sets/gets the direction property of the font. .IP to_string 4 .IX Item "to_string" Returns a Pango-style font string, \f(CW\*(C`Sans Italic 14\*(C'\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" Text::Layout::FontConfig, Text::Layout. .SH AUTHOR .IX Header "AUTHOR" Johan Vromans, \f(CW\*(C`\*(C'\fR .SH SUPPORT .IX Header "SUPPORT" This module is part of Text::Layout. .PP Development takes place on GitHub: . .PP You can find documentation for this module with the perldoc command. .PP .Vb 1 \& perldoc Text::Layout::FontDescriptor .Ve .PP Please report any bugs or feature requests using the issue tracker for Text::Layout on GitHub. .SH LICENSE .IX Header "LICENSE" See Text::Layout.