CMap

[Raku PDF Project] / [PDF-Font-Loader Module] / PDF::Font::Loader :: Enc :: CMap

class PDF::Font::Loader::Enc::CMap

CMap based encoding/decoding

Description

This method maps to PDF font dictionaries with a ToUnicode entry and Type0 (CID) fonts with an Encoding entry that reference CMaps.

This class extends the base-class PDF::Font::Loader::Enc, adding the ability of reading existing CMaps. It also adds the ability to handle variable encoding.

Methods

This class inherits from PDF::Font::Loader::Enc and has all its method available.

make-encoding-cmap

Generates a CMap for the /Encoding entry in a PDF Type0 font, which is used to implement custom variable and wide encodings. This method is typically called from the font object when an encoding has been added or updated for the encoder.

Caveats

Most, but not all, CMap encoded fonts have a Unicode mapping. The has-encoding() method should be used to verify this before using the encode() or decode() methods on a dictionary loaded CMap encoding.

PDF::Font::Loader v0.7.5

Font loading and embedding for the PDF tool-chain

Authors

  • David Warring

License

Artistic-2.0

Dependencies

Font::AFM:ver<1.24.6+>Font::FreeType:ver<0.4.3+>Hash::intNative::PackingPDF::Content:ver<0.6.12+>PDF::Lite:ver<0.0.11+>PDF:ver<0.5.4+>

Test Dependencies

Provides

  • PDF::Font::Loader
  • PDF::Font::Loader::Dict
  • PDF::Font::Loader::Enc
  • PDF::Font::Loader::Enc::CMap
  • PDF::Font::Loader::Enc::Glyphic
  • PDF::Font::Loader::Enc::Identity16
  • PDF::Font::Loader::Enc::Type1
  • PDF::Font::Loader::Enc::Unicode
  • PDF::Font::Loader::FontObj
  • PDF::Font::Loader::FontObj::CID
  • PDF::Font::Loader::Glyph
  • PDF::Font::Loader::Type1::Stream

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.