1X11Font(3)            User Contributed Perl Documentation           X11Font(3)
2
3
4

NAME

6       Tk::Font - a class for finding X Fonts
7

SYNOPSIS

9        use Tk::X11Font;
10
11        $font = $widget->X11Font(foundry => 'adobe',
12                              family  => 'times',
13                              point   => 120
14                             );
15
16        $font = $widget->X11Font('*-courier-medium-r-normal-*-*');
17

DESCRIPTION

19          This module can be use to interrogate the X server what fonts are
20          avaliable.
21

METHODS

23       Foundry( [ $val ] )
24
25       Family( [ $val ] )
26
27       Weight( [ $val ] )
28
29       Slant( [ $val ] )
30
31       Swidth( [ $val ] )
32
33       Adstyle( [ $val ] )
34
35       Pixel( [ $val ] )
36
37       Point( [ $val ] )
38
39       Xres( [ $val ] )
40
41       Yres( [ $val ] )
42
43       Space( [ $val ] )
44
45       Avgwidth( [ $val ] )
46
47       Registry( [ $val ] )
48
49       Encoding( [ $val ] )
50
51       Set the given field in the font name to $val if given and return the
52       current or previous value
53
54       Name( [ $max ] )
55
56       In a list context it returns a list of all font names that match the
57       fields given. It will return a maximum of $max names, or 128 if $max is
58       not given.
59
60       In a scalar contex it returns the first matching name or undef
61
62       Clone( [ key => value, [ ...]] )
63
64       Create a duplicate of the curent font object and modify the given
65       fields
66

AUTHOR

68       Graham Barr <Graham.Barr@tiuk.ti.com>
69

HISTORY

71       11-Jan-96 Initial version
72
73       08-Nov-98 Renamed for Tk800.012
74
76       Copyright (c) 1995-1996 Graham Barr. All rights reserved. This program
77       is free software; you can redistribute it and/or modify it under the
78       same terms as Perl itself.
79
80
81
82perl v5.8.8                       2008-02-05                        X11Font(3)
Impressum