Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Pdf_Resource_Font_Simple_Standard_ZapfDingbats Class Reference

Public Member Functions

 __construct ()
 Object constructor.
 
 encodeString ($string, $charEncoding)
 Convert string encoding from local encoding to font encoding.
 
 decodeString ($string, $charEncoding)
 Convert string encoding from font encoding to local encoding.
 
 toUnicode ($string, $charEncoding= '')
 Converts a Latin-encoded string that fakes the font's internal encoding to the proper Unicode characters, in UTF-16BE encoding.
 
- Public Member Functions inherited from Zend_Pdf_Resource_Font_Simple_Standard
 __construct ()
 Object constructor.
 
- Public Member Functions inherited from Zend_Pdf_Resource_Font_Simple
 __construct ()
 Object constructor.
 
 glyphNumbersForCharacters ($characterCodes)
 Returns an array of glyph numbers corresponding to the Unicode characters.
 
 glyphNumberForCharacter ($characterCode)
 Returns the glyph number corresponding to the Unicode character.
 
 getCoveredPercentage ($string, $charEncoding= '')
 Returns a number between 0 and 1 inclusive that indicates the percentage of characters in the string which are covered by glyphs in this font.
 
 widthsForGlyphs ($glyphNumbers)
 Returns the widths of the glyphs.
 
 widthForGlyph ($glyphNumber)
 Returns the width of the glyph.
 
 encodeString ($string, $charEncoding)
 Convert string to the font encoding.
 
 decodeString ($string, $charEncoding)
 Convert string from the font encoding.
 
- Public Member Functions inherited from Zend_Pdf_Resource_Font
 __construct ()
 Object constructor.
 
 __toString ()
 Returns the full name of the font in the encoding method of the current locale.
 
 getFontType ()
 Returns the type of font.
 
 getFontName ($nameType, $language, $characterSet=null)
 Returns the specified descriptive name for the font.
 
 getFontNames ()
 Returns whole set of font names.
 
 isBold ()
 Returns true if font is bold.
 
 isItalic ()
 Returns true if font is italic.
 
 isMonospace ()
 Returns true if font is monospace.
 
 getUnderlinePosition ()
 Returns the suggested position below the text baseline of the underline in glyph units.
 
 getUnderlineThickness ()
 Returns the suggested line thickness of the underline in glyph units.
 
 getStrikePosition ()
 Returns the suggested position above the text baseline of the strikethrough in glyph units.
 
 getStrikeThickness ()
 Returns the suggested line thickness of the strikethrough in glyph units.
 
 getUnitsPerEm ()
 Returns the number of glyph units per em.
 
 getAscent ()
 Returns the typographic ascent in font glyph units.
 
 getDescent ()
 Returns the typographic descent in font glyph units.
 
 getLineGap ()
 Returns the typographic line gap in font glyph units.
 
 getLineHeight ()
 Returns the suggested line height (or leading) in font glyph units.
 
 glyphNumbersForCharacters ($characterCodes)
 Returns an array of glyph numbers corresponding to the Unicode characters.
 
 glyphNumberForCharacter ($characterCode)
 Returns the glyph number corresponding to the Unicode character.
 
 getCoveredPercentage ($string, $charEncoding= '')
 Returns a number between 0 and 1 inclusive that indicates the percentage of characters in the string which are covered by glyphs in this font.
 
 widthsForGlyphs ($glyphNumbers)
 Returns the widths of the glyphs.
 
 widthForGlyph ($glyphNumber)
 Returns the width of the glyph.
 
 encodeString ($string, $charEncoding)
 Convert string to the font encoding.
 
 decodeString ($string, $charEncoding)
 Convert string from the font encoding.
 
 toEmSpace ($value)
 If the font's glyph space is not 1000 units per em, converts the value.
 
- Public Member Functions inherited from Zend_Pdf_Resource
 __construct ($resource)
 Object constructor.
 
 __clone ()
 Clone page, extract it and dependent objects from the current document, so it can be used within other docs.
 
 cloneResource ($factory, &$processed)
 Clone resource, extract it and dependent objects from the current document, so it can be used within other docs.
 
 getResource ()
 Get resource.
 
 getFactory ()
 Get factory.
 

Protected Attributes

 $_toFontEncoding
 
 $_fromFontEncoding
 

Constructor & Destructor Documentation

__construct ( )

Object constructor.

Member Function Documentation

decodeString (   $string,
  $charEncoding 
)

Convert string encoding from font encoding to local encoding.

Overridden to defeat the conversion behavior for this ornamental font.

Parameters
string$string
string$charEncodingCharacter encoding of resulting text.
Returns
string
encodeString (   $string,
  $charEncoding 
)

Convert string encoding from local encoding to font encoding.

Overridden to defeat the conversion behavior for this ornamental font.

Parameters
string$string
string$charEncodingCharacter encoding of source text.
Returns
string
Todo:
Properly handle characters encoded as surrogate pairs.
toUnicode (   $string,
  $charEncoding = '' 
)

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
string$string
string$charEncoding(optional) Character encoding of source string. Defaults to current locale.
Returns
string

Member Data Documentation

$_fromFontEncoding
protected
$_toFontEncoding
protected