{
    "content": [
        {
            "type": "text",
            "text": "# PDF::API2::Resource::CIDFont::CJKFont (perldoc)\n\n## NAME\n\nPDF::API2::Resource::CIDFont::CJKFont - Deprecated base class for CJK fonts\n\n## DESCRIPTION\n\nThis is not the CJK font support you are looking for. It dates back to the days when Unicode was\nyoung and poorly supported. PDFs created using this class are not portable.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **DEPRECATED METHODS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "PDF::API2::Resource::CIDFont::CJKFont",
        "section": "",
        "mode": "perldoc",
        "summary": "PDF::API2::Resource::CIDFont::CJKFont - Deprecated base class for CJK fonts",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 34,
                "subsections": []
            },
            {
                "name": "DEPRECATED METHODS",
                "lines": 23,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "PDF::API2::Resource::CIDFont::CJKFont - Deprecated base class for CJK fonts\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This is not the CJK font support you are looking for. It dates back to the days when Unicode was\nyoung and poorly supported. PDFs created using this class are not portable.\n\nInstead, use a regular TrueType or OpenType font that includes Unicode support and create your\nPDF normally:\n\nuse PDF::API2;\nuse utf8;\n\nmy $pdf = PDF::API2->new();\nmy $font = $pdf->font('/path/to/font.ttf');\nmy $page = $pdf->page();\nmy $content = $page->text();\n$content->font($font, 24);\n\n# Chinese\n$content->translate(72, 72 * 9);\n$content->text('你好');\n\n# Japanese\n$content->distance(0, -72);\n$content->text('こんにちは');\n\n# Korean\n$content->distance(0, -72);\n$content->text('안녕하세요');\n\n$pdf->save('hello.pdf');\n\nNote: The maintainer is not familiar with CJK languages and has deprecated this class based on\nhis current understanding of Unicode and from reading many bug reports. If you are successfully\nusing the CJK support from this class and think it should not be deprecated, please contact him\nto discuss.\n",
                "subsections": []
            },
            "DEPRECATED METHODS": {
                "content": "$font = $class->new($pdf, $cjkfontname, %options)\nReturns a CJK font object. The requested font will not be embedded in the PDF, so it will\nonly be readable on computers that have the font installed.\n\nAvailable fonts:\n\nChinese (Traditional)\nMing, Ming-Bold, Ming-Italic, and Ming-BoldItalic\n\nChinese (Simplified)\nSong, Song-Bold, Song-Italic, and Song-BoldItalic\n\nKorean\nMyungJo, MyungJo-Bold, MyungJo-Italic, and MyungJo-BoldItalic\n\nJapanese (Mincho Serif)\nKozMin, KozMin-Bold, KozMin-Italic, and KozMin-BoldItalic\n\nJapanese (Gothic Sans Serif)\nKozGo, KozGo-Bold, KozGo-Italic, KozGo-BoldItalic\n\nIf the text isn't UTF-8, include an \"-encode\" option with the encoding to be used.\n",
                "subsections": []
            }
        }
    }
}