Class: I2CE FontMetricTTF: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
*Extends the class: [[Class: I2CE_FontMetricMultiDirection | I2CE_FontMetricMultiDirection]]. | *Extends the class: [[Class: I2CE_FontMetricMultiDirection | I2CE_FontMetricMultiDirection]]. | ||
*Location: Part of the module [[TextLayout Tools Module List#textlayout|textlayout]] in the package [https://launchpad.net/textlayout TextLayout Tools] | *Location: Part of the module [[TextLayout Tools Module List#textlayout|textlayout]] in the package [https://launchpad.net/textlayout TextLayout Tools] | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0. | *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L23 lib/I2CE_FontMetricTTF.php] on line 23 | ||
*Author: Carl Leitner <litlfred@ibiblio.org> | *Author: Carl Leitner <litlfred@ibiblio.org> | ||
Class to contain information about font metrics. Data extracted from TTF files | Class to contain information about font metrics. Data extracted from TTF files | ||
==Variables== | ==Variables== | ||
===$ttf_file=== | ===$ttf_file=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L24 textlayout/lib/I2CE_FontMetricTTF.php] on line 24 | |||
*Type: protected $ttf_file | *Type: protected $ttf_file | ||
===$ttf_handle=== | ===$ttf_handle=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L25 textlayout/lib/I2CE_FontMetricTTF.php] on line 25 | |||
*Type: protected $ttf_handle | *Type: protected $ttf_handle | ||
===$directory=== | ===$directory=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L26 textlayout/lib/I2CE_FontMetricTTF.php] on line 26 | |||
*Type: protected $directory | *Type: protected $directory | ||
===$numOfLongHorMetrics=== | ===$numOfLongHorMetrics=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L27 textlayout/lib/I2CE_FontMetricTTF.php] on line 27 | |||
*Type: protected $numOfLongHorMetrics | *Type: protected $numOfLongHorMetrics | ||
===$num_glyphs=== | ===$num_glyphs=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L28 textlayout/lib/I2CE_FontMetricTTF.php] on line 28 | |||
*Type: protected $num_glyphs | *Type: protected $num_glyphs | ||
===$GIDtoCPs=== | ===$GIDtoCPs=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L29 textlayout/lib/I2CE_FontMetricTTF.php] on line 29 | |||
*Type: protected $GIDtoCPs | *Type: protected $GIDtoCPs | ||
===$indexToLocFormat=== | ===$indexToLocFormat=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L30 textlayout/lib/I2CE_FontMetricTTF.php] on line 30 | |||
*Type: protected $indexToLocFormat | *Type: protected $indexToLocFormat | ||
===$glyph_offsets=== | ===$glyph_offsets=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L31 textlayout/lib/I2CE_FontMetricTTF.php] on line 31 | |||
*Type: protected $glyph_offsets | *Type: protected $glyph_offsets | ||
===$units_per_em=== | ===$units_per_em=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L32 textlayout/lib/I2CE_FontMetricTTF.php] on line 32 | |||
*Type: protected $units_per_em | *Type: protected $units_per_em | ||
===$file_size=== | ===$file_size=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L33 textlayout/lib/I2CE_FontMetricTTF.php] on line 33 | |||
*Type: protected $file_size | *Type: protected $file_size | ||
===$fix=== | ===$fix=== | ||
Some common incorrect glyph names | Some common incorrect glyph names | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L850 textlayout/lib/I2CE_FontMetricTTF.php] on line 850 | |||
*Type: static protected fix $fix | *Type: static protected fix $fix | ||
==Methods== | ==Methods== | ||
===__construct()=== | ===__construct()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L40 textlayout/lib/I2CE_FontMetricTTF.php] on line 40 | |||
*Signature: public function __construct($encoding,$ttf_file) | *Signature: public function __construct($encoding,$ttf_file) | ||
*Parameters: | *Parameters: | ||
Line 47: | Line 59: | ||
**$ttf_file | **$ttf_file | ||
===close()=== | ===close()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L99 textlayout/lib/I2CE_FontMetricTTF.php] on line 99 | |||
*Signature: protected function close() | *Signature: protected function close() | ||
===generate_PDF_CMAP()=== | ===generate_PDF_CMAP()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L746 textlayout/lib/I2CE_FontMetricTTF.php] on line 746 | |||
*Signature: public function generate_PDF_CMAP($platform_id,$platform_specific_id) | *Signature: public function generate_PDF_CMAP($platform_id,$platform_specific_id) | ||
*Parameters: | *Parameters: | ||
Line 57: | Line 71: | ||
===getCIDtoGIDmap()=== | ===getCIDtoGIDmap()=== | ||
$param int $platform_id is the Platform ID. Default is null which means we dont care. The platform ID follows this table <table> <tr><td>Platform ID</td><td> Platform </td><td>Specific encoding</td></tr> <tr><td>0</td><td> Unicode </td><td>Indicates Unicode version.</td></tr> <tr><td>1</td><td> Macintosh </td><td>Script Manager code.</td></tr> <tr><td>3</td><td> Microsoft</td><td> Microsoft encoding.</td></tr></table> | $param int $platform_id is the Platform ID. Default is null which means we dont care. The platform ID follows this table <table> <tr><td>Platform ID</td><td> Platform </td><td>Specific encoding</td></tr> <tr><td>0</td><td> Unicode </td><td>Indicates Unicode version.</td></tr> <tr><td>1</td><td> Macintosh </td><td>Script Manager code.</td></tr> <tr><td>3</td><td> Microsoft</td><td> Microsoft encoding.</td></tr></table> | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L523 textlayout/lib/I2CE_FontMetricTTF.php] on line 523 | |||
*Signature: public function getCIDtoGIDmap($platform_id,$platform_specific_id) | *Signature: public function getCIDtoGIDmap($platform_id,$platform_specific_id) | ||
*Parameters: | *Parameters: | ||
Line 64: | Line 79: | ||
***Default Value: null | ***Default Value: null | ||
===getEncodedCharactersFromGlyphID()=== | ===getEncodedCharactersFromGlyphID()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L823 textlayout/lib/I2CE_FontMetricTTF.php] on line 823 | |||
*Signature: public function getEncodedCharactersFromGlyphID($gid) | *Signature: public function getEncodedCharactersFromGlyphID($gid) | ||
*Parameters: | *Parameters: | ||
**$gid | **$gid | ||
===getTTFFile()=== | ===getTTFFile()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L68 textlayout/lib/I2CE_FontMetricTTF.php] on line 68 | |||
*Signature: public function getTTFFile() | *Signature: public function getTTFFile() | ||
===getUnicodeCodepointsFromGlyphID()=== | ===getUnicodeCodepointsFromGlyphID()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L819 textlayout/lib/I2CE_FontMetricTTF.php] on line 819 | |||
*Signature: public function getUnicodeCodepointsFromGlyphID($gid) | *Signature: public function getUnicodeCodepointsFromGlyphID($gid) | ||
*Parameters: | *Parameters: | ||
**$gid | **$gid | ||
===gotoTable()=== | ===gotoTable()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L73 textlayout/lib/I2CE_FontMetricTTF.php] on line 73 | |||
*Signature: protected function gotoTable($table) | *Signature: protected function gotoTable($table) | ||
*Parameters: | *Parameters: | ||
**$table | **$table | ||
===inDirectory()=== | ===inDirectory()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L82 textlayout/lib/I2CE_FontMetricTTF.php] on line 82 | |||
*Signature: protected function inDirectory($table) | *Signature: protected function inDirectory($table) | ||
*Parameters: | *Parameters: | ||
Line 83: | Line 103: | ||
===loadDirectory()=== | ===loadDirectory()=== | ||
Reference:http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html | Reference:http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L458 textlayout/lib/I2CE_FontMetricTTF.php] on line 458 | |||
*Signature: protected function loadDirectory() | *Signature: protected function loadDirectory() | ||
===loadin()=== | ===loadin()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L1057 textlayout/lib/I2CE_FontMetricTTF.php] on line 1057 | |||
*Signature: protected function loadin($file) | *Signature: protected function loadin($file) | ||
*Parameters: | *Parameters: | ||
**$file | **$file | ||
===openForReading()=== | ===openForReading()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L87 textlayout/lib/I2CE_FontMetricTTF.php] on line 87 | |||
*Signature: protected function openForReading() | *Signature: protected function openForReading() | ||
===read_FWord()=== | ===read_FWord()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L160 textlayout/lib/I2CE_FontMetricTTF.php] on line 160 | |||
*Signature: protected function read_FWord() | *Signature: protected function read_FWord() | ||
===read_fixed_pieces()=== | ===read_fixed_pieces()=== | ||
DATA TYPES: http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html#Types Macintosh Data type OS/2 Data Type Description uint8 BYTE 8-bit unsigned integer int8 CHAR 8-bit signed integer uint16 USHORT 16-bit unsigned integer int16 SHORT 16-bit signed integer uint32 ULONG 32-bit unsigned integer int32 LONG 32-bit signed integer shortFrac - 16-bit signed fraction Fixed - 16.16-bit signed fixed-point number FWord - 16-bit signed integer that describes a quantity in FUnits, the smallest measurable distance in em space. uFWord - 16-bit unsigned integer that describes a quantity in FUnits, the smallest measurable distance in em space. F2Dot14 - 16-bit signed fixed number with the low 14 bits representing fraction. longDateTime - The long internal format of a date in seconds since 12:00 midnight, January 1, 1904. It is represented as a signed 64-bit integer. NOTE: We are Big-Endian here | DATA TYPES: http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html#Types Macintosh Data type OS/2 Data Type Description uint8 BYTE 8-bit unsigned integer int8 CHAR 8-bit signed integer uint16 USHORT 16-bit unsigned integer int16 SHORT 16-bit signed integer uint32 ULONG 32-bit unsigned integer int32 LONG 32-bit signed integer shortFrac - 16-bit signed fraction Fixed - 16.16-bit signed fixed-point number FWord - 16-bit signed integer that describes a quantity in FUnits, the smallest measurable distance in em space. uFWord - 16-bit unsigned integer that describes a quantity in FUnits, the smallest measurable distance in em space. F2Dot14 - 16-bit signed fixed number with the low 14 bits representing fraction. longDateTime - The long internal format of a date in seconds since 12:00 midnight, January 1, 1904. It is represented as a signed 64-bit integer. NOTE: We are Big-Endian here | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L127 textlayout/lib/I2CE_FontMetricTTF.php] on line 127 | |||
*Signature: protected function read_fixed_pieces() | *Signature: protected function read_fixed_pieces() | ||
===read_glyf()=== | ===read_glyf()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L318 textlayout/lib/I2CE_FontMetricTTF.php] on line 318 | |||
*Signature: protected function read_glyf() | *Signature: protected function read_glyf() | ||
===read_head()=== | ===read_head()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L385 textlayout/lib/I2CE_FontMetricTTF.php] on line 385 | |||
*Signature: protected function read_head() | *Signature: protected function read_head() | ||
===read_hhea()=== | ===read_hhea()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L261 textlayout/lib/I2CE_FontMetricTTF.php] on line 261 | |||
*Signature: protected function read_hhea() | *Signature: protected function read_hhea() | ||
===read_hmtx()=== | ===read_hmtx()=== | ||
See http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6hmtx.html | See http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6hmtx.html | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L343 textlayout/lib/I2CE_FontMetricTTF.php] on line 343 | |||
*Signature: protected function read_hmtx() | *Signature: protected function read_hmtx() | ||
===read_int16()=== | ===read_int16()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L145 textlayout/lib/I2CE_FontMetricTTF.php] on line 145 | |||
*Signature: protected function read_int16() | *Signature: protected function read_int16() | ||
===read_int32()=== | ===read_int32()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L156 textlayout/lib/I2CE_FontMetricTTF.php] on line 156 | |||
*Signature: protected function read_int32() | *Signature: protected function read_int32() | ||
===read_int8()=== | ===read_int8()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L137 textlayout/lib/I2CE_FontMetricTTF.php] on line 137 | |||
*Signature: protected function read_int8() | *Signature: protected function read_int8() | ||
===read_kern()=== | ===read_kern()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L756 textlayout/lib/I2CE_FontMetricTTF.php] on line 756 | |||
*Signature: public function read_kern($old_format) | *Signature: public function read_kern($old_format) | ||
*Parameters: | *Parameters: | ||
Line 116: | Line 149: | ||
***Default Value: true | ***Default Value: true | ||
===read_loca()=== | ===read_loca()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L301 textlayout/lib/I2CE_FontMetricTTF.php] on line 301 | |||
*Signature: protected function read_loca() | *Signature: protected function read_loca() | ||
===read_name()=== | ===read_name()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L179 textlayout/lib/I2CE_FontMetricTTF.php] on line 179 | |||
*Signature: protected function read_name() | *Signature: protected function read_name() | ||
===read_numGlyphs()=== | ===read_numGlyphs()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L840 textlayout/lib/I2CE_FontMetricTTF.php] on line 840 | |||
*Signature: protected function read_numGlyphs() | *Signature: protected function read_numGlyphs() | ||
===read_uFWord()=== | ===read_uFWord()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L167 textlayout/lib/I2CE_FontMetricTTF.php] on line 167 | |||
*Signature: protected function read_uFWord() | *Signature: protected function read_uFWord() | ||
===read_uint16()=== | ===read_uint16()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L141 textlayout/lib/I2CE_FontMetricTTF.php] on line 141 | |||
*Signature: protected function read_uint16() | *Signature: protected function read_uint16() | ||
===read_uint32()=== | ===read_uint32()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L152 textlayout/lib/I2CE_FontMetricTTF.php] on line 152 | |||
*Signature: protected function read_uint32() | *Signature: protected function read_uint32() | ||
===read_uint8()=== | ===read_uint8()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L133 textlayout/lib/I2CE_FontMetricTTF.php] on line 133 | |||
*Signature: protected function read_uint8() | *Signature: protected function read_uint8() | ||
===setCIDtoGID()=== | ===setCIDtoGID()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L491 textlayout/lib/I2CE_FontMetricTTF.php] on line 491 | |||
*Signature: protected function setCIDtoGID($CIDtoGID,$cid,$gid,$warning,$try_unicode) | *Signature: protected function setCIDtoGID($CIDtoGID,$cid,$gid,$warning,$try_unicode) | ||
*Parameters: | *Parameters: | ||
Line 139: | Line 180: | ||
***Default Value: false | ***Default Value: false | ||
===showCharacterInfo()=== | ===showCharacterInfo()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_FontMetricTTF.php#L1069 textlayout/lib/I2CE_FontMetricTTF.php] on line 1069 | |||
*Signature: public function showCharacterInfo() | *Signature: public function showCharacterInfo() | ||
==Inherited Methods== | ==Inherited Methods== |
Revision as of 08:49, 10 November 2009
This article describes the class I2CE_FontMetricTTF.
- Extends the class: I2CE_FontMetricMultiDirection.
- Location: Part of the module textlayout in the package TextLayout Tools
- Source: Defined in the file lib/I2CE_FontMetricTTF.php on line 23
- Author: Carl Leitner <litlfred@ibiblio.org>
Class to contain information about font metrics. Data extracted from TTF files
Variables
$ttf_file
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 24
- Type: protected $ttf_file
$ttf_handle
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 25
- Type: protected $ttf_handle
$directory
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 26
- Type: protected $directory
$numOfLongHorMetrics
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 27
- Type: protected $numOfLongHorMetrics
$num_glyphs
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 28
- Type: protected $num_glyphs
$GIDtoCPs
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 29
- Type: protected $GIDtoCPs
$indexToLocFormat
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 30
- Type: protected $indexToLocFormat
$glyph_offsets
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 31
- Type: protected $glyph_offsets
$units_per_em
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 32
- Type: protected $units_per_em
$file_size
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 33
- Type: protected $file_size
$fix
Some common incorrect glyph names
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 850
- Type: static protected fix $fix
Methods
__construct()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 40
- Signature: public function __construct($encoding,$ttf_file)
- Parameters:
- &$encoding
- $ttf_file
close()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 99
- Signature: protected function close()
generate_PDF_CMAP()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 746
- Signature: public function generate_PDF_CMAP($platform_id,$platform_specific_id)
- Parameters:
- $platform_id
- Default Value: null
- $platform_specific_id
- Default Value: null
- $platform_id
getCIDtoGIDmap()
$param int $platform_id is the Platform ID. Default is null which means we dont care. The platform ID follows this table
Platform ID | Platform | Specific encoding |
0 | Unicode | Indicates Unicode version. |
1 | Macintosh | Script Manager code. |
3 | Microsoft | Microsoft encoding. |
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 523
- Signature: public function getCIDtoGIDmap($platform_id,$platform_specific_id)
- Parameters:
- $platform_id
- Default Value: null
- int $platform_specific_id The platform specific id's identify languages used on a platform. Their values are outline in:http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html#ID. Set to null(default) if you dont care which one
- Default Value: null
- $platform_id
getEncodedCharactersFromGlyphID()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 823
- Signature: public function getEncodedCharactersFromGlyphID($gid)
- Parameters:
- $gid
getTTFFile()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 68
- Signature: public function getTTFFile()
getUnicodeCodepointsFromGlyphID()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 819
- Signature: public function getUnicodeCodepointsFromGlyphID($gid)
- Parameters:
- $gid
gotoTable()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 73
- Signature: protected function gotoTable($table)
- Parameters:
- $table
inDirectory()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 82
- Signature: protected function inDirectory($table)
- Parameters:
- $table
loadDirectory()
Reference:http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 458
- Signature: protected function loadDirectory()
loadin()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 1057
- Signature: protected function loadin($file)
- Parameters:
- $file
openForReading()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 87
- Signature: protected function openForReading()
read_FWord()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 160
- Signature: protected function read_FWord()
read_fixed_pieces()
DATA TYPES: http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html#Types Macintosh Data type OS/2 Data Type Description uint8 BYTE 8-bit unsigned integer int8 CHAR 8-bit signed integer uint16 USHORT 16-bit unsigned integer int16 SHORT 16-bit signed integer uint32 ULONG 32-bit unsigned integer int32 LONG 32-bit signed integer shortFrac - 16-bit signed fraction Fixed - 16.16-bit signed fixed-point number FWord - 16-bit signed integer that describes a quantity in FUnits, the smallest measurable distance in em space. uFWord - 16-bit unsigned integer that describes a quantity in FUnits, the smallest measurable distance in em space. F2Dot14 - 16-bit signed fixed number with the low 14 bits representing fraction. longDateTime - The long internal format of a date in seconds since 12:00 midnight, January 1, 1904. It is represented as a signed 64-bit integer. NOTE: We are Big-Endian here
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 127
- Signature: protected function read_fixed_pieces()
read_glyf()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 318
- Signature: protected function read_glyf()
read_head()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 385
- Signature: protected function read_head()
read_hhea()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 261
- Signature: protected function read_hhea()
read_hmtx()
See http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6hmtx.html
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 343
- Signature: protected function read_hmtx()
read_int16()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 145
- Signature: protected function read_int16()
read_int32()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 156
- Signature: protected function read_int32()
read_int8()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 137
- Signature: protected function read_int8()
read_kern()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 756
- Signature: public function read_kern($old_format)
- Parameters:
- $old_format
- Default Value: true
- $old_format
read_loca()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 301
- Signature: protected function read_loca()
read_name()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 179
- Signature: protected function read_name()
read_numGlyphs()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 840
- Signature: protected function read_numGlyphs()
read_uFWord()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 167
- Signature: protected function read_uFWord()
read_uint16()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 141
- Signature: protected function read_uint16()
read_uint32()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 152
- Signature: protected function read_uint32()
read_uint8()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 133
- Signature: protected function read_uint8()
setCIDtoGID()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 491
- Signature: protected function setCIDtoGID($CIDtoGID,$cid,$gid,$warning,$try_unicode)
- Parameters:
- &$CIDtoGID
- $cid
- $gid
- $warning
- $try_unicode
- Default Value: false
showCharacterInfo()
- Defined in textlayout/lib/I2CE_FontMetricTTF.php on line 1069
- Signature: public function showCharacterInfo()
Inherited Methods
getAllFontCharacteristics()
This public method is inherited from I2CE_FontMetricMultiDirection->getAllFontCharacteristics()
getAscender()
This public method is inherited from I2CE_FontMetricMultiDirection->getAscender()
getBoundingBox()
This public method is inherited from I2CE_FontMetricMultiDirection->getBoundingBox()
getCharacterHeight()
This public method is inherited from I2CE_FontMetricMultiDirection->getCharacterHeight()
getCharacterHeights()
This public method is inherited from I2CE_FontMetricMultiDirection->getCharacterHeights()
getCharacterInfo()
This public method is inherited from I2CE_FontMetricMultiDirection->getCharacterInfo()
getCharacterWidth()
This public method is inherited from I2CE_FontMetricMultiDirection->getCharacterWidth()
getCharacterWidths()
This public method is inherited from I2CE_FontMetricMultiDirection->getCharacterWidths()
getDescender()
This public method is inherited from I2CE_FontMetricMultiDirection->getDescender()
getDirection()
This public method is inherited from I2CE_FontMetricMultiDirection->getDirection()
getDirections()
This public method is inherited from I2CE_FontMetricMultiDirection->getDirections()
getEncoding()
This public method is inherited from I2CE_FontMetricMultiDirection->getEncoding()
getFixedWidth()
This public method is inherited from I2CE_FontMetricMultiDirection->getFixedWidth()
getFontCharacteristic()
This public method is inherited from I2CE_FontMetricMultiDirection->getFontCharacteristic()
getFontSize()
This public method is inherited from I2CE_FontMetricMultiDirection->getFontSize()
getKerningByGroup()
This public method is inherited from I2CE_FontMetricMultiDirection->getKerningByGroup()
getKerningByPair()
This public method is inherited from I2CE_FontMetricMultiDirection->getKerningByPair()
getKerningGroup()
This public method is inherited from I2CE_FontMetricMultiDirection->getKerningGroup()
getKerningValue()
This public method is inherited from I2CE_FontMetricMultiDirection->getKerningValue()
getLinegap()
This public method is inherited from I2CE_FontMetricMultiDirection->getLinegap()
getStringWidth()
This public method is inherited from I2CE_FontMetricMultiDirection->getStringWidth()
getTrackingValues()
This public method is inherited from I2CE_FontMetricMultiDirection->getTrackingValues()
isFixedWidth()
This public method is inherited from I2CE_FontMetricMultiDirection->isFixedWidth()
setAscender()
This public method is inherited from I2CE_FontMetricMultiDirection->setAscender()
setBoundingBox()
This public method is inherited from I2CE_FontMetricMultiDirection->setBoundingBox()
setCharacterHeight()
This public method is inherited from I2CE_FontMetricMultiDirection->setCharacterHeight()
setCharacterInfo()
This public method is inherited from I2CE_FontMetricMultiDirection->setCharacterInfo()
setCharacterWidth()
This public method is inherited from I2CE_FontMetricMultiDirection->setCharacterWidth()
setDescender()
This public method is inherited from I2CE_FontMetricMultiDirection->setDescender()
setDirection()
This public method is inherited from I2CE_FontMetricMultiDirection->setDirection()
setFixedHeightSize()
This public method is inherited from I2CE_FontMetricMultiDirection->setFixedHeightSize()
setFixedWidth()
This public method is inherited from I2CE_FontMetricMultiDirection->setFixedWidth()
setFixedWidthSize()
This public method is inherited from I2CE_FontMetricMultiDirection->setFixedWidthSize()
setFontCharacteristic()
This public method is inherited from I2CE_FontMetricMultiDirection->setFontCharacteristic()
setFontSize()
This public method is inherited from I2CE_FontMetricMultiDirection->setFontSize()
setGlobal()
This public method is inherited from I2CE_FontMetricMultiDirection->setGlobal()
setKerningByGroup()
This public method is inherited from I2CE_FontMetricMultiDirection->setKerningByGroup()
setKerningByPair()
This public method is inherited from I2CE_FontMetricMultiDirection->setKerningByPair()
setKerningGroup()
This public method is inherited from I2CE_FontMetricMultiDirection->setKerningGroup()
setLinegap()
This public method is inherited from I2CE_FontMetricMultiDirection->setLinegap()
getFixedStringWidth()
This protected method is inherited from I2CE_FontMetricMultiDirection->getFixedStringWidth()
getVariableStringWidth()
This protected method is inherited from I2CE_FontMetricMultiDirection->getVariableStringWidth()
Inherited Variables
$font_metrics
Theis protected variable is inherited from I2CE_FontMetricMultiDirection->$font_metrics
$direction
Theis protected variable is inherited from I2CE_FontMetricMultiDirection->$direction
$directions
Theis protected variable is inherited from I2CE_FontMetricMultiDirection->$directions
$character_widths
Theis public variable is inherited from I2CE_FontMetric->$character_widths
$character_heights
Theis public variable is inherited from I2CE_FontMetric->$character_heights
$character_info
Theis public variable is inherited from I2CE_FontMetric->$character_info
$bbox
Theis protected variable is inherited from I2CE_FontMetric->$bbox
$ascender
Theis protected variable is inherited from I2CE_FontMetric->$ascender
$descender
Theis protected variable is inherited from I2CE_FontMetric->$descender
$linegap
Theis protected variable is inherited from I2CE_FontMetric->$linegap
$is_fixed_width
Theis protected variable is inherited from I2CE_FontMetric->$is_fixed_width
$fixed_character_width
Theis protected variable is inherited from I2CE_FontMetric->$fixed_character_width
$fixed_character_height
Theis protected variable is inherited from I2CE_FontMetric->$fixed_character_height
$size
Theis protected variable is inherited from I2CE_FontMetric->$size
$encoding
Theis protected variable is inherited from I2CE_FontMetric->$encoding
$kerning_table_pairs
Theis protected variable is inherited from I2CE_FontMetric->$kerning_table_pairs
$kerning_table_groups
Theis protected variable is inherited from I2CE_FontMetric->$kerning_table_groups
$kerning_groups
Theis protected variable is inherited from I2CE_FontMetric->$kerning_groups
$font_info
Theis protected variable is inherited from I2CE_FontMetric->$font_info