Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tk::X11Font (3)

Name

Tk::X11Font - a class for finding X Fonts

Synopsis

use Tk::X11Font;

$font = $widget->X11Font(foundry => 'adobe',
family  => 'times',
point   => 120
);

$font = $widget->X11Font('*-courier-medium-r-normal-*-*');

Description

User Contributed Perl Documentation                                 X11Font(3)



NAME
       Tk::Font - a class for finding X Fonts

SYNOPSIS
        use Tk::X11Font;

        $font = $widget->X11Font(foundry => 'adobe',
                              family  => 'times',
                              point   => 120
                             );

        $font = $widget->X11Font('*-courier-medium-r-normal-*-*');

DESCRIPTION
          This module can be use to interrogate the X server what fonts are
          avaliable.

METHODS
   Foundry( [ $val ] )
   Family( [ $val ] )
   Weight( [ $val ] )
   Slant( [ $val ] )
   Swidth( [ $val ] )
   Adstyle( [ $val ] )
   Pixel( [ $val ] )
   Point( [ $val ] )
   Xres( [ $val ] )
   Yres( [ $val ] )
   Space( [ $val ] )
   Avgwidth( [ $val ] )
   Registry( [ $val ] )
   Encoding( [ $val ] )
       Set the given field in the font name to $val if given and return the
       current or previous value

   Name( [ $max ] )
       In a list context it returns a list of all font names that match the
       fields given. It will return a maximum of $max names, or 128 if $max is
       not given.

       In a scalar contex it returns the first matching name or undef

   Clone( [ key => value, [ ...]] )
       Create a duplicate of the curent font object and modify the given
       fields

AUTHOR
       Graham Barr <Graham.Barr@tiuk.ti.com>

HISTORY
       11-Jan-96 Initial version

       08-Nov-98 Renamed for Tk800.012

COPYRIGHT
       Copyright (c) 1995-1996 Graham Barr. All rights reserved. This program
       is free software; you can redistribute it and/or modify it under the
       same terms as Perl itself.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+----------------------------+
       |ATTRIBUTE TYPE |      ATTRIBUTE VALUE       |
       +---------------+----------------------------+
       |Availability   | library/perl-5/perl-tk-532 |
       +---------------+----------------------------+
       |Stability      | Volatile                   |
       +---------------+----------------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/~srezic/Tk.



perl v5.32.0                      2013-11-15                        X11Font(3)