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.
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
21
/** Zend_Pdf_Resource_Font_Simple */
22
require_once 'Zend/Pdf/Resource/Font/Simple.php';
26
* Abstract class definition for the standard 14 Type 1 PDF fonts.
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.
33
* The standard fonts and the corresponding subclasses that manage them:
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}
51
* Font objects should be normally be obtained from the factory methods
52
* {@link Zend_Pdf_Font::fontWithName} and {@link Zend_Pdf_Font::fontWithPath}.
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
59
abstract class Zend_Pdf_Resource_Font_Simple_Standard extends Zend_Pdf_Resource_Font_Simple
61
/**** Public Interface ****/
64
/* Object Lifecycle */
69
public function __construct()
71
$this->_fontType = Zend_Pdf_Font::TYPE_STANDARD;
73
parent::__construct();
74
$this->_resource->Subtype = new Zend_Pdf_Element_Name('Type1');