You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.2 KiB

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