BDF2GDFONT(1p) | User Contributed Perl Documentation | BDF2GDFONT(1p) |
bdf2gdfont.pl - Convert X11 "BDF" fonts into a loadable font format for GD.
% bdf2gdfont.pl courR12.bdf > courR12.fnt
This script converts BDF-style X11 font files into a format that can be loaded by the GD module using the GD::Font->load() method. There are a number of ways to obtain BDF fonts.
fstobdf -s fontserverhost:7100 -fn 8x16 | bdf2gdfont.pl > newfont.fnt
Use xlsfonts to find out what fonts are available. Most fonts will have long names like -B&H-LucidaTypewriter-Bold-R-Normal-Sans-18-180-75-75-M-110-ISO8859-10.
This font converter only works with fixed-width fonts. If used with a TrueType or proportional font it will die with an error message.
GD
Lincoln Stein <lstein@cshl.org>, heavily adapted from bdftogd from Jan Pazdziora <adelton@fi.muni.cz>.
Copyright (c) 2004 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2019-02-22 | perl v5.28.1 |