2
0

Standard.php 3.1 KB

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