Class: I2CE FontMetricTTF (4.1.7)

From IHRIS Wiki


This article describes the class I2CE_FontMetricTTF .

Class to contain information about font metrics. Data extracted from TTF files

Variables

$ttf_file

$ttf_handle

$directory

$numOfLongHorMetrics

$num_glyphs

$GIDtoCPs

$indexToLocFormat

$glyph_offsets

$units_per_em

$file_size

$fix

Some common incorrect glyph names

Methods

__construct()

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

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.

getEncodedCharactersFromGlyphID()

getTTFFile()

getUnicodeCodepointsFromGlyphID()

gotoTable()

inDirectory()

loadDirectory()

Reference:http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html

loadin()

openForReading()

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

read_glyf()

read_head()

read_hhea()

read_hmtx()

See http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6hmtx.html

read_int16()

read_int32()

read_int8()

read_kern()

read_loca()

read_name()

read_numGlyphs()

read_uFWord()

read_uint16()

read_uint32()

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()

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