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