PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/libs/devblocks/libs/ZendFramework/Zend/Pdf/Resource/Font/Standard.php

https://github.com/sluther/portsensor
PHP | 75 lines | 10 code | 7 blank | 58 comment | 0 complexity | 14fd2ffafcfe7de54933066d17a8c91f MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause
  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-2007 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. */
  20. /** Zend_Pdf_Resource_Font */
  21. require_once 'Zend/Pdf/Resource/Font.php';
  22. /**
  23. * Abstract class definition for the standard 14 Type 1 PDF fonts.
  24. *
  25. * The standard 14 PDF fonts are guaranteed to be availble in any PDF viewer
  26. * implementation. As such, they do not require much data for the font's
  27. * resource dictionary. The majority of the data provided by subclasses is for
  28. * the benefit of our own layout code.
  29. *
  30. * The standard fonts and the corresponding subclasses that manage them:
  31. * <ul>
  32. * <li>Courier - {@link Zend_Pdf_Resource_Font_Standard_Courier}
  33. * <li>Courier-Bold - {@link Zend_Pdf_Resource_Font_Standard_CourierBold}
  34. * <li>Courier-Oblique - {@link Zend_Pdf_Resource_Font_Standard_CourierOblique}
  35. * <li>Courier-BoldOblique - {@link Zend_Pdf_Resource_Font_Standard_CourierBoldOblique}
  36. * <li>Helvetica - {@link Zend_Pdf_Resource_Font_Standard_Helvetica}
  37. * <li>Helvetica-Bold - {@link Zend_Pdf_Resource_Font_Standard_HelveticaBold}
  38. * <li>Helvetica-Oblique - {@link Zend_Pdf_Resource_Font_Standard_HelveticaOblique}
  39. * <li>Helvetica-BoldOblique - {@link Zend_Pdf_Resource_Font_Standard_HelveticaBoldOblique}
  40. * <li>Symbol - {@link Zend_Pdf_Resource_Font_Standard_Symbol}
  41. * <li>Times - {@link Zend_Pdf_Resource_Font_Standard_Times}
  42. * <li>Times-Bold - {@link Zend_Pdf_Resource_Font_Standard_TimesBold}
  43. * <li>Times-Italic - {@link Zend_Pdf_Resource_Font_Standard_TimesItalic}
  44. * <li>Times-BoldItalic - {@link Zend_Pdf_Resource_Font_Standard_TimesBoldItalic}
  45. * <li>ZapfDingbats - {@link Zend_Pdf_Resource_Font_Standard_ZapfDingbats}
  46. * </ul>
  47. *
  48. * Font objects should be normally be obtained from the factory methods
  49. * {@link Zend_Pdf_Font::fontWithName} and {@link Zend_Pdf_Font::fontWithPath}.
  50. *
  51. * @package Zend_Pdf
  52. * @subpackage Fonts
  53. * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  54. * @license http://framework.zend.com/license/new-bsd New BSD License
  55. */
  56. abstract class Zend_Pdf_Resource_Font_Standard extends Zend_Pdf_Resource_Font
  57. {
  58. /**** Public Interface ****/
  59. /* Object Lifecycle */
  60. /**
  61. * Object constructor
  62. */
  63. public function __construct()
  64. {
  65. parent::__construct();
  66. $this->_resource->Subtype = new Zend_Pdf_Element_Name('Type1');
  67. }
  68. }