~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to application/library/Zend/Pdf/Resource/Font/Simple/Standard.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_Resource_Font_Simple */
 
22
require_once 'Zend/Pdf/Resource/Font/Simple.php';
 
23
 
 
24
 
 
25
/**
 
26
 * Abstract class definition for the standard 14 Type 1 PDF fonts.
 
27
 *
 
28
 * The standard 14 PDF fonts are guaranteed to be availble in any PDF viewer
 
29
 * implementation. As such, they do not require much data for the font's
 
30
 * resource dictionary. The majority of the data provided by subclasses is for
 
31
 * the benefit of our own layout code.
 
32
 *
 
33
 * The standard fonts and the corresponding subclasses that manage them:
 
34
 * <ul>
 
35
 *  <li>Courier - {@link Zend_Pdf_Resource_Font_Simple_Standard_Courier}
 
36
 *  <li>Courier-Bold - {@link Zend_Pdf_Resource_Font_Simple_Standard_CourierBold}
 
37
 *  <li>Courier-Oblique - {@link Zend_Pdf_Resource_Font_Simple_Standard_CourierOblique}
 
38
 *  <li>Courier-BoldOblique - {@link Zend_Pdf_Resource_Font_Simple_Standard_CourierBoldOblique}
 
39
 *  <li>Helvetica - {@link Zend_Pdf_Resource_Font_Simple_Standard_Helvetica}
 
40
 *  <li>Helvetica-Bold - {@link Zend_Pdf_Resource_Font_Simple_Standard_HelveticaBold}
 
41
 *  <li>Helvetica-Oblique - {@link Zend_Pdf_Resource_Font_Simple_Standard_HelveticaOblique}
 
42
 *  <li>Helvetica-BoldOblique - {@link Zend_Pdf_Resource_Font_Simple_Standard_HelveticaBoldOblique}
 
43
 *  <li>Symbol - {@link Zend_Pdf_Resource_Font_Simple_Standard_Symbol}
 
44
 *  <li>Times - {@link Zend_Pdf_Resource_Font_Simple_Standard_Times}
 
45
 *  <li>Times-Bold - {@link Zend_Pdf_Resource_Font_Simple_Standard_TimesBold}
 
46
 *  <li>Times-Italic - {@link Zend_Pdf_Resource_Font_Simple_Standard_TimesItalic}
 
47
 *  <li>Times-BoldItalic - {@link Zend_Pdf_Resource_Font_Simple_Standard_TimesBoldItalic}
 
48
 *  <li>ZapfDingbats - {@link Zend_Pdf_Resource_Font_Simple_Standard_ZapfDingbats}
 
49
 * </ul>
 
50
 *
 
51
 * Font objects should be normally be obtained from the factory methods
 
52
 * {@link Zend_Pdf_Font::fontWithName} and {@link Zend_Pdf_Font::fontWithPath}.
 
53
 *
 
54
 * @package    Zend_Pdf
 
55
 * @subpackage Fonts
 
56
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
57
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
58
 */
 
59
abstract class Zend_Pdf_Resource_Font_Simple_Standard extends Zend_Pdf_Resource_Font_Simple
 
60
{
 
61
  /**** Public Interface ****/
 
62
 
 
63
 
 
64
  /* Object Lifecycle */
 
65
 
 
66
    /**
 
67
     * Object constructor
 
68
     */
 
69
    public function __construct()
 
70
    {
 
71
        $this->_fontType = Zend_Pdf_Font::TYPE_STANDARD;
 
72
 
 
73
        parent::__construct();
 
74
        $this->_resource->Subtype  = new Zend_Pdf_Element_Name('Type1');
 
75
    }
 
76
 
 
77
}