Previous Next


                                           424
CHAPTER 5                                                                    Text



Example of a Type 3 Font

Example shows the definition of a Type 3 font with only two glyphs—a filled
square and a filled triangle, selected by the character codes a and b. Figure 5.12
shows the result of showing the string ( ababab ) using this font.




                            FIGURE 5.12 Output from Example


  4 0 obj
     << /Type /Font
         /Subtype /Type3
         /FontBBox [ 0 0 750 750 ]
         /FontMatrix [ 0.001 0 0 0.001 0 0 ]
         /CharProcs 10 0 R
         /Encoding 9 0 R
         /FirstChar 97
         /LastChar 98
         /Widths [ 1000 1000 ]
     >>
  endobj

  9 0 obj
     << /Type /Encoding
         /Differences [ 97 /square /triangle ]
     >>
  endobj

  10 0 obj
     << /square 11 0 R
         /triangle 12 0 R
     >>
  endobj

Previous Next