~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to application/library/Zend/Pdf/Cmap/ByteEncoding/Static.php

  • Committer: Mustafa A. Hashmi
  • Date: 2008-12-04 13:32:21 UTC
  • Revision ID: mhashmi@zivios.org-20081204133221-0nd1trunwevijj38
Inclusion of new installation framework with ties to zend layout and dojo layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Zend Framework
 
4
 *
 
5
 * LICENSE
 
6
 *
 
7
 * This source file is subject to the new BSD license that is bundled
 
8
 * with this package in the file LICENSE.txt.
 
9
 * It is also available through the world-wide-web at this URL:
 
10
 * http://framework.zend.com/license/new-bsd
 
11
 * If you did not receive a copy of the license and are unable to
 
12
 * obtain it through the world-wide-web, please send an email
 
13
 * to license@zend.com so we can send you a copy immediately.
 
14
 *
 
15
 * @package    Zend_Pdf
 
16
 * @subpackage Fonts
 
17
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
18
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
19
 */
 
20
 
 
21
/** Zend_Pdf_Cmap_ByteEncoding */
 
22
require_once 'Zend/Pdf/Cmap/ByteEncoding.php';
 
23
 
 
24
 
 
25
/**
 
26
 * Custom cmap type used for the Adobe Standard 14 PDF fonts.
 
27
 *
 
28
 * Just like {@link Zend_Pdf_Cmap_ByteEncoding} except that the constructor
 
29
 * takes a predefined array of glyph numbers and can cover any Unicode character.
 
30
 *
 
31
 * @package    Zend_Pdf
 
32
 * @subpackage Fonts
 
33
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
34
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
35
 */
 
36
class Zend_Pdf_Cmap_ByteEncoding_Static extends Zend_Pdf_Cmap_ByteEncoding
 
37
{
 
38
  /**** Public Interface ****/
 
39
 
 
40
 
 
41
  /* Object Lifecycle */
 
42
 
 
43
    /**
 
44
     * Object constructor
 
45
     *
 
46
     * @param array $cmapData Array whose keys are Unicode character codes and
 
47
     *   values are glyph numbers.
 
48
     * @throws Zend_Pdf_Exception
 
49
     */
 
50
    public function __construct($cmapData)
 
51
    {
 
52
        if (! is_array($cmapData)) {
 
53
            throw new Zend_Pdf_Exception('Constructor parameter must be an array',
 
54
                                         Zend_Pdf_Exception::BAD_PARAMETER_TYPE);
 
55
        }
 
56
        $this->_glyphIndexArray = $cmapData;
 
57
    }
 
58
 
 
59
}