{
    "mode": "man",
    "parameter": "bdf2gdfont",
    "section": "1p",
    "url": "https://www.chedong.com/phpMan.php/man/bdf2gdfont/1p/json",
    "generated": "2026-06-03T03:35:42Z",
    "synopsis": "% bdf2gdfont.pl courR12.bdf > courR12.fnt",
    "sections": {
        "NAME": {
            "content": "bdf2gdfont.pl - Convert X11 \"BDF\" fonts into a loadable font format for GD.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "% bdf2gdfont.pl courR12.bdf > courR12.fnt\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This script converts BDF-style X11 font files into a format that can be loaded by the GD\nmodule using the GD::Font->load() method.  There are a number of ways to obtain BDF fonts.\n\n1. The font is already present on your system.\nSome BDF fonts can be found in the standard X11R6 distribution. This script will\nautomatically uncompress gzipped font files if their extension ends with .gz (the gunzip\nprogram must be on your path).\n\n2. From a font server.\nThe \"fstobdf\" utility, a standard X11 utility, will read a named font from the font\nserver of your choice and return it in BDF format.  You can pipe it to bdf2gdfont.pl:\n\nfstobdf -s fontserverhost:7100 -fn 8x16 | bdf2gdfont.pl > newfont.fnt\n\nUse xlsfonts to find out what fonts are available.  Most fonts will have long names like\n-B&H-LucidaTypewriter-Bold-R-Normal-Sans-18-180-75-75-M-110-ISO8859-10.\n\n3. Using the pcf2bdf utility.\nSome fonts are only available in PCF (compiled) format.  To obtain these, you can either\nturn on a font server and follow recipe (2), or use TAGA Nayuta's pcf2bdf utility. This\nutility is available from http://www.tsg.ne.jp/GANA/S/pcf2bdf/ (page is in Japanese, but\nyou can find the download link).\n",
            "subsections": [
                {
                    "name": "Limitations",
                    "content": "This font converter only works with fixed-width fonts.  If used with a TrueType or\nproportional font it will die with an error message.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "GD\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Lincoln Stein <lstein@cshl.org>, heavily adapted from bdftogd from Jan Pazdziora\n<adelton@fi.muni.cz>.\n\nCopyright (c) 2004 Cold Spring Harbor Laboratory\n\nThis library is free software; you can redistribute it and/or modify it under the same terms\nas Perl itself.\n\n\n\nperl v5.34.0                                 2022-02-06                               BDF2GDFONT(1p)",
            "subsections": []
        }
    },
    "summary": "bdf2gdfont.pl - Convert X11 \"BDF\" fonts into a loadable font format for GD.",
    "flags": [],
    "examples": [],
    "see_also": []
}