Previous Next


                                                   453
            SECTION 5.6                                                          Composite Fonts



KEY                  TYPE       VALUE

BaseFont             name       (Required) The PostScript name of the font. In principle, this is an arbitrary
                                name, since there is no font program associated directly with a Type 0 font
                                dictionary. The conventions described here ensure maximum compatibility
                                with existing Acrobat products.
                                If the descendant is a Type 0 CIDFont, this name should be the concatenation
                                of the CIDFont’s BaseFont name, a hyphen, and the CMap name given in the
                                Encoding entry (or the CMapName entry in the CMap). If the descendant is a
                                Type 2 CIDFont, this name should be the same as the CIDFont’s BaseFont
                                name.

Encoding             name or    (Required) The name of a predefined CMap, or a stream containing a CMap
                     stream     that maps character codes to font numbers and CIDs. If the descendant is a
                                Type 2 CIDFont whose associated TrueType font program is not embedded
                                in the PDF file, the Encoding entry must be a predefined CMap name (see
                                “Glyph Selection in CIDFonts” on page 437).

DescendantFonts      array      (Required) A one-element array specifying the CIDFont dictionary that is the
                                descendant of this Type 0 font.

ToUnicode            stream     (Optional) A stream containing a CMap file that maps character codes to
                                Unicode values (see Section 5.9, “Extraction of Text Content”).

            Example 5.11

              14 0 obj
                 << /Type /Font
                     /Subtype /Type0
                     /BaseFont /HeiseiMin−W5−90ms−RKSJ−H
                     /Encoding /90ms−RKSJ−H
                     /DescendantFonts [ 15 0 R ]
                 >>
              endobj


            CMap Mapping

            The Encoding entry of a Type 0 font dictionary specifies a CMap that determines
            how text-showing operators (such as Tj) interpret the bytes in the string to be
            shown when the current font is the Type 0 font. The following paragraphs
            describe how the characters in the string are decoded and mapped into character
            selectors (which in PDF must always be CIDs).

Previous Next