Sgss_Font_Truetype_Directory_Entry
Represents an encalsuled entry in the TrueType table directory

Description

Used by:
Sgss_Font_Truetype_Directory::add(),Sgss_Font_Truetype_Parser::_parseHeader()
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
Usedby:
Sgss_Font_Truetype_Directory::add()
License:
http://creativecommons.org/licenses/GPL/2.0/
Usedby:
Sgss_Font_Truetype_Parser::_parseHeader()
Located in:
/Font/Truetype/Directory/Entry.php (line 49)

Class overview

Accessors

read-only int $tag

Tag identifier of this entry

read-only int $offset

Offset in byte to this entry

read-only int $length

Length in byte of this entry

read-only string $name

Tag name of this entry

Variables

protected int $_length

Length in byte of this entry

protected string $_name

Tag name of this entry

protected int $_offset

Offset in byte to this entry

protected int $_tag

Tag identifier of this entry

Methods

__construct (int $tag, int $offset, int $length)

The constructor

int getLength ()

Returns the length in byte of this entry

string getName ()

Returns the tag name of this entry

int getOffset ()

Returns the offset in byte to this entry

int getTag ()

Returns the tag identifier of this entry

mixed __get (mixed $name)

Variable detail

$_length 

Length in byte of this entry

Signature:
protected int $_length


$_name 

Tag name of this entry

Signature:
protected string $_name


$_offset 

Offset in byte to this entry

Signature:
protected int $_offset


$_tag 

Tag identifier of this entry

Signature:
protected int $_tag


Method detail

__construct

The constructor

Parameters:
  • int $tag

    Tag identifier of the entry

  • int $offset

    Offset in byte to the entry

  • int $length

    Length in byte of the entry

Signature:
public __construct (int $tag, int $offset, int $length)


getLength

Returns the length in byte of this entry

Returns:
int -- Length in byte of this entry
Signature:
public int getLength ()


getName

Returns the tag name of this entry

Returns:
string -- Tag name of this entry
Signature:
public string getName ()


getOffset

Returns the offset in byte to this entry

Returns:
int -- Offset in byte to this entry
Signature:
public int getOffset ()


getTag

Returns the tag identifier of this entry

Returns:
int -- Tag identifier of this entry
Signature:
public int getTag ()


__get

Parameters:
  • mixed $name
Signature:
public mixed __get (mixed $name)