Tk::X11Font(3pm)

Tk::X11Font3pm

A class for finding x fonts

Usage

 use Tk::X11Font;
 $font = $widget->X11Font(foundry => 'adobe',
                       family  => 'times',
                       point   => 120
                      );
 $font = $widget->X11Font('*-courier-medium-r-normal-*-*');

Overview

   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

Releases

14 releases since Debian 2.2 (Potato); the text changed 13 times.

  1. 2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0
  6. 6.0
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. Arch

Author

Graham Barr <[email protected]>

History

11-Jan-96 Initial version

08-Nov-98 Renamed for Tk800.012

From perl-tk 804.036-9 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.