API Documentation

Zend/Pdf/Resource/Font/Simple/Standard/Symbol.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Subpackage
Fonts  
Version
$Id: Symbol.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Pdf_Resource_Font_Simple_Standard_Symbol

Package: Zend\Pdf\Fonts

Implementation for the standard PDF font Symbol.

This class was generated automatically using the font information and metric data contained in the Adobe Font Metric (AFM) files, available here: {@link http://partners.adobe.com/public/developer/en/pdf/Core14_AFMs.zip}

The PHP script used to generate this class can be found in the /tools directory of the framework distribution. If you need to make modifications to this class, chances are the same modifications are needed for the rest of the standard fonts. You should modify the script and regenerate the classes instead of changing this class file by hand.

Parent(s)
\Zend_Pdf_Resource_Font_Simple_Standard < \Zend_Pdf_Resource_Font_Simple < \Zend_Pdf_Resource_Font < \Zend_Pdf_Resource
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedarray  $_fromFontEncoding= 'array( 0x20 => "\x00\x20"'

Array for conversion from special font encoding to local encoding.

See {@link decodeString()}.

Default valuearray( 0x20 => "\x00\x20"Details
Type
array
Propertyprotectedarray  $_toFontEncoding= 'array( 0x20 => "\x20"'

Array for conversion from local encoding to special font encoding.

See {@link encodeString()}.

Default valuearray( 0x20 => "\x20"Details
Type
array

Methods

methodpublic__construct( ) : void

Object constructor

methodpublicdecodeString( string $string, string $charEncoding ) : string

Convert string encoding from font encoding to local encoding. Overridden to defeat the conversion behavior for this ornamental font.

Parameters
Name Type Description
$string string
$charEncoding string

Character encoding of resulting text.

Returns
Type Description
string
methodpublicencodeString( string $string, string $charEncoding ) : string

Convert string encoding from local encoding to font encoding. Overridden to defeat the conversion behavior for this ornamental font.

Parameters
Name Type Description
$string string
$charEncoding string

Character encoding of source text.

Returns
Type Description
string
methodpublictoUnicode( string $string, string $charEncoding = '' ) : string

Converts a Latin-encoded string that fakes the font's internal encoding to the proper Unicode characters, in UTF-16BE encoding.

Used to maintain backwards compatibility with the 20 year-old legacy method of using this font, which is still employed by recent versions of some popular word processors.

Note that using this method adds overhead due to the additional character conversion. Don't use this for new code; it is more efficient to use the appropriate Unicode characters directly.

Parameters
Name Type Description
$string string
$charEncoding string

(optional) Character encoding of source string. Defaults to current locale.

Returns
Type Description
string
Documentation was generated by DocBlox 0.15.1.