Copyright (C) 2000-2012 |
Manpages X11FONTSection: User Contributed Perl Documentation (1)Updated: 2000-04-18 Index Return to Main Contents NAMETk::Font - a class for finding X FontsSYNOPSISuse Tk::X11Font; $font = $widget->X11Font(foundry => 'adobe', family => 'times', point => 120 ); $font = $widget->X11Font('*-courier-medium-r-normal-*-*'); DESCRIPTIONThis module can be use to interrogate the X server what fonts are avaliable. METHODSFoundry( [ $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 valueName( [ $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 fieldsAUTHORGraham Barr <Graham.Barr@tiuk.ti.com>HISTORY11-Jan-96 Initial version08-Nov-98 Renamed for Tk800.012 COPYRIGHTCopyright (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.
Index
This document was created by man2html, using the manual pages. Time: 22:42:59 GMT, April 25, 2024 |