{
    "content": [
        {
            "type": "text",
            "text": "# PDF::Font (perldoc)\n\n## NAME\n\nPDF::Font - Base font class for PDF::Create.\n\n## SYNOPSIS\n\nuse strict; use warnings;\nuse PDF::Font;\nmy $font = PDF::Font->new('Helvetica');\nmy $charwidths = $font->charwidth;\nprint \"Character width: \", $font->getcharwidth(ord('A')), \"\\n\";\nprint \"Character  name: \", $font->getcharname(ord('A')) , \"\\n\";\n\n## DESCRIPTION\n\nBase font class to support font families approved by PDF::Create. This is used in the method\n\"initwidths()\" inside the package PDF::Create::Page.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **CONSTRUCTOR**\n- **METHODS**\n- **AUTHORS**\n- **REPOSITORY**\n- **COPYRIGHT**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "PDF::Font",
        "section": "",
        "mode": "perldoc",
        "summary": "PDF::Font - Base font class for PDF::Create.",
        "synopsis": "use strict; use warnings;\nuse PDF::Font;\nmy $font = PDF::Font->new('Helvetica');\nmy $charwidths = $font->charwidth;\nprint \"Character width: \", $font->getcharwidth(ord('A')), \"\\n\";\nprint \"Character  name: \", $font->getcharname(ord('A')) , \"\\n\";",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "CONSTRUCTOR",
                "lines": 28,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPOSITORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "PDF::Font - Base font class for PDF::Create.\n",
                "subsections": []
            },
            "VERSION": {
                "content": "Version 1.46\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Base font class to support font families approved by PDF::Create. This is used in the method\n\"initwidths()\" inside the package PDF::Create::Page.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use strict; use warnings;\nuse PDF::Font;\n\nmy $font = PDF::Font->new('Helvetica');\nmy $charwidths = $font->charwidth;\nprint \"Character width: \", $font->getcharwidth(ord('A')), \"\\n\";\nprint \"Character  name: \", $font->getcharname(ord('A')) , \"\\n\";\n",
                "subsections": []
            },
            "CONSTRUCTOR": {
                "content": "Expects \"fontname\" as the only parameter. It can be one of the following names:\n\n*   Courier\n\n*   Courier-Bold\n\n*   Courier-BoldOblique\n\n*   Courier-Oblique\n\n*   Helvetica\n\n*   Helvetica-Bold\n\n*   Helvetica-BoldOblique\n\n*   Helvetica-Oblique\n\n*   Times-Bold\n\n*   Times-BoldItalic\n\n*   Times-Italic\n\n*   Times-Roman\n\n*   Symbol\n",
                "subsections": []
            },
            "METHODS": {
                "content": "charwidth()\nReturns arrayref of all characters width (0..255).\n\ngetcharwidth($codepoint)\nReturns the character width for the given $codepoint.\n\ngetcharname($codepoint)\nReturns the character name for the given $codepoint.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Mohammad S Anwar (MANWAR) \"<mohammad.anwar at yahoo.com>\"\n",
                "subsections": []
            },
            "REPOSITORY": {
                "content": "<https://github.com/manwar/pdf-create>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 1999-2001,Fabien Tassin.All rights reserved.It may be used and modified freely, but I\ndo request that this copyright notice remain attached to the file. You may modify this module as\nyou wish,but if you redistribute a modified version , please attach a note listing the\nmodifications you have made.\n\nCopyright 2007 Markus Baertschi\n\nCopyright 2010 Gary Lieberman\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "This is free software; you can redistribute it and / or modify it under the same terms as Perl\n5.6.0.\n",
                "subsections": []
            }
        }
    }
}