Pdf/Resource/Font/FontDescriptor.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Subpackage
Fonts  
Version
$Id$  

\Zend_Pdf_Resource_Font_FontDescriptor

Package: Zend_Pdf\Fonts
FontDescriptor implementation
A font descriptor specifies metrics and other attributes of a simple font or a CIDFont as a whole, as distinct from the metrics of individual glyphs. These font metrics provide information that enables a viewer application to synthesize a substitute font or select a similar font when the font program is unavailable. The font descriptor may also be used to embed the font program in the PDF file.
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublic__construct() : void

Object constructor

Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublicfactory(\Zend_Pdf_Resource_Font $font, \Zend_Pdf_FileParser_Font_OpenType $fontParser, integer $embeddingOptions) : \Zend_Pdf_Element_Dictionary
static

Object constructor

The $embeddingOptions parameter allows you to set certain flags related to font embedding. You may combine options by OR-ing them together. See the EMBED_ constants defined in {@link Zend_Pdf_Font} for the list of available options and their descriptions. Note that it is not requried that fonts be embedded within the PDF file to use them. If the recipient of the PDF has the font installed on their computer, they will see the correct fonts in the document. If they don't, the PDF viewer will substitute or synthesize a replacement.
Parameters
NameTypeDescription
$font\Zend_Pdf_Resource_Font

Font

$fontParser\Zend_Pdf_FileParser_Font_OpenType

Font parser object containing parsed TrueType file.

$embeddingOptionsinteger

Options for font embedding.

Returns
TypeDescription
\Zend_Pdf_Element_Dictionary
Throws
ExceptionDescription
\Zend_Pdf_Exception
Documentation was generated by phpDocumentor 2.2.0 .