|
| | __construct (Zend_Pdf_FileParserDataSource $dataSource) |
| |
| | __get ($property) |
| |
| | readStringUTF16 ($byteCount, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN, $characterSet='') |
| |
| | readStringMacRoman ($byteCount, $characterSet='') |
| |
| | readStringPascal ($characterSet='', $lengthBytes=1) |
| |
| | writeDebug () |
| |
| | __set ($property, $value) |
| |
| | screen () |
| |
| | parse () |
| |
| | __construct (Zend_Pdf_FileParserDataSource $dataSource) |
| |
| | __destruct () |
| |
| | isScreened () |
| |
| | isParsed () |
| |
| | getDataSource () |
| |
| | moveToOffset ($offset) |
| |
| | getOffset () |
| |
| | getSize () |
| |
| | readBytes ($byteCount) |
| |
| | skipBytes ($byteCount) |
| |
| | readInt ($size, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN) |
| |
| | readUInt ($size, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN) |
| |
| | isBitSet ($bit, $bitField) |
| |
| | readFixed ($mantissaBits, $fractionBits, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN) |
| |
| | readStringUTF16 ($byteCount, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN, $characterSet='') |
| |
| | readStringMacRoman ($byteCount, $characterSet='') |
| |
| | readStringPascal ($characterSet='', $lengthBytes=1) |
| |
Definition at line 42 of file Font.php.
◆ __construct()
Object constructor.
Validates the data source and enables debug logging if so configured.
- Parameters
-
- Exceptions
-
Definition at line 75 of file Font.php.
77 parent::__construct($dataSource);
◆ __get()
Get handler
- Parameters
-
- Returns
- mixed
Definition at line 90 of file Font.php.
92 if (isset($this->_fontProperties[$property])) {
93 return $this->_fontProperties[$property];
◆ __set()
| __set |
( |
|
$property, |
|
|
|
$value |
|
) |
| |
Set handler
NOTE: This method is protected. Other classes may freely interrogate the font properties, but only this and its subclasses may set them.
- Parameters
-
| string | $property | |
| mixed | $value | |
Definition at line 181 of file Font.php.
184 unset($this->_fontProperties[$property]);
186 $this->_fontProperties[$property] =
$value;
◆ _debugLog()
If debug logging is enabled, writes the log message.
The log message is a sprintf() style string and any number of arguments may accompany it as additional parameters.
- Parameters
-
| string | $message | |
| mixed | (optional, multiple) Additional arguments |
Definition at line 202 of file Font.php.
204 if (! $this->_debug) {
207 if (func_num_args() > 1) {
208 $args = func_get_args();
213 #require_once 'Zend/Log.php';
◆ readStringMacRoman()
| readStringMacRoman |
( |
|
$byteCount, |
|
|
|
$characterSet = '' |
|
) |
| |
Reads the Mac Roman-encoded string from the binary file at the current offset location. Overridden to fix return character set at UTF-16BE.
- Parameters
-
| integer | $byteCount | Number of bytes (characters) to return. |
| string | $characterSet | (optional) –Ignored– |
- Returns
- string
- Exceptions
-
Definition at line 134 of file Font.php.
136 return parent::readStringMacRoman($byteCount,
'UTF-16BE');
◆ readStringPascal()
| readStringPascal |
( |
|
$characterSet = '', |
|
|
|
$lengthBytes = 1 |
|
) |
| |
Reads the Pascal string from the binary file at the current offset location. Overridden to fix return character set at UTF-16BE.
- Parameters
-
| string | $characterSet | (optional) –Ignored– |
| integer | $lengthBytes | (optional) Number of bytes that make up the length. Default is 1. |
- Returns
- string
- Exceptions
-
Definition at line 149 of file Font.php.
151 return parent::readStringPascal(
'UTF-16BE');
◆ readStringUTF16()
Reads the Unicode UTF-16-encoded string from the binary file at the current offset location. Overridden to fix return character set at UTF-16BE.
- Todo:
- Deal with to-dos in the parent method.
- Parameters
-
| integer | $byteCount | Number of bytes (characters * 2) to return. |
| integer | $byteOrder | (optional) Big- or little-endian byte order. Use the BYTE_ORDER_ constants defined in Zend_Pdf_FileParser. If omitted, uses big-endian. |
| string | $characterSet | (optional) –Ignored– |
- Returns
- string
- Exceptions
-
Definition at line 118 of file Font.php.
122 return parent::readStringUTF16($byteCount, $byteOrder,
'UTF-16BE');
◆ writeDebug()
Writes the entire font properties array to STDOUT. Used only for debugging.
Definition at line 160 of file Font.php.
162 print_r($this->_fontProperties);
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/FileParser/Font.php