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

NAME

6       bdf2gdfont.pl - Convert X11 "BDF" fonts into a loadable font format for
7       GD.
8

SYNOPSIS

10         % bdf2gdfont.pl courR12.bdf > courR12.fnt
11

DESCRIPTION

13       This script converts BDF-style X11 font files into a format that can be
14       loaded by the GD module using the GD::Font->load() method.  There are a
15       number of ways to obtain BDF fonts.
16
17       1. The font is already present on your system.
18           Some BDF fonts can be found in the standard X11R6 distribution.
19           This script will automatically uncompress gzipped font files if
20           their extension ends with .gz (the gunzip program must be on your
21           path).
22
23       2. From a font server.
24           The "fstobdf" utility, a standard X11 utility, will read a named
25           font from the font server of your choice and return it in BDF
26           format.  You can pipe it to bdf2gdfont.pl:
27
28             fstobdf -s fontserverhost:7100 -fn 8x16 | bdf2gdfont.pl > newfont.fnt
29
30           Use xlsfonts to find out what fonts are available.  Most fonts will
31           have long names like
32           -B&H-LucidaTypewriter-Bold-R-Normal-Sans-18-180-75-75-M-110-ISO8859-10.
33
34       3. Using the pcf2bdf utility.
35           Some fonts are only available in PCF (compiled) format.  To obtain
36           these, you can either turn on a font server and follow recipe (2),
37           or use TAGA Nayuta's pcf2bdf utility. This utility is available
38           from http://www.tsg.ne.jp/GANA/S/pcf2bdf/ (page is in Japanese, but
39           you can find the download link).
40
41   Limitations
42       This font converter only works with fixed-width fonts.  If used with a
43       TrueType or proportional font it will die with an error message.
44

SEE ALSO

46       GD
47

AUTHOR

49       Lincoln Stein <lstein@cshl.org>, heavily adapted from bdftogd from Jan
50       Pazdziora <adelton@fi.muni.cz>.
51
52       Copyright (c) 2004 Cold Spring Harbor Laboratory
53
54       This library is free software; you can redistribute it and/or modify it
55       under the same terms as Perl itself.
56
57
58
59perl v5.16.3                      2014-06-09                     BDF2GDFONT(1)
Impressum