Documentation

File extends File
in package

EOT font file.

Table of Contents

char  = 13
F2Dot14  = 11
Fixed  = 8
FWord  = 9
int16  = 4
int32  = 6
int8  = 2
longDateTime  = 12
modeRead  = "rb"
modeReadWrite  = "rb+"
modeWrite  = "wb"
shortFrac  = 7
TTEMBED_FAILIFVARIATIONSIMULATED  = 0x10
TTEMBED_SUBSET  = 0x1
TTEMBED_TTCOMPRESSED  = 0x4
TTEMBED_VALIDATIONTESTS  = 0x40
TTEMBED_WEBOBJECT  = 0x80
TTEMBED_XORENCRYPTDATA  = 0x10000000
TTMBED_EMBEDEUDC  = 0x20
uFWord  = 10
uint16  = 3
uint32  = 5
uint8  = 1
$glyph_all  : mixed
$header  : Header
$macCharNames  : mixed
$data  : mixed
$directory  : mixed
$f  : resource
$glyph_subset  : mixed
$raw  : mixed
$tableOffset  : mixed
addDirectoryEntry()  : mixed
backtrace()  : mixed
close()  : mixed
Close the internal file pointer
convertUInt32ToStr()  : string
Converts a Uint32 value to string
encode()  : mixed
getData()  : mixed
getFontCopyright()  : string|null
Get font copyright
getFontFullName()  : string|null
Get font full name
getFontName()  : string|null
Get font name
getFontPostscriptName()  : string|null
Get font Postscript name
getFontSubfamily()  : string|null
Get font subfamily
getFontSubfamilyID()  : string|null
Get font subfamily ID
getFontType()  : mixed
getFontVersion()  : string|null
Get font version
getFontWeight()  : string|null
Get font weight
getNameTableString()  : string|null
Get a specific name table string value from its ID
getSubset()  : mixed
getTable()  : mixed
getTableObject()  : Table
getTempFile()  : resource
Create a temporary file in write mode
getUnicodeCharMap()  : mixed
load()  : bool
Open a font file in read mode
normalizeFUnit()  : mixed
open()  : bool
Open a font file in a chosen mode
pack()  : mixed
parse()  : mixed
parseHeader()  : mixed
parseTableEntries()  : mixed
pos()  : int
Gives the current position in the file
r()  : mixed
Read a data of type $type in the file from the current position
read()  : string
Little endian version of the read method
readFixed()  : mixed
readFWord()  : mixed
readInt16()  : mixed
readInt16Many()  : mixed
readInt8()  : mixed
readInt8Many()  : mixed
readLongDateTime()  : mixed
readUFWord()  : mixed
readUInt16()  : mixed
readUInt16Many()  : mixed
readUInt32()  : mixed
readUInt8()  : mixed
readUInt8Many()  : mixed
reduce()  : mixed
saveAdobeFontMetrics()  : mixed
seek()  : bool
Move the internal file pinter to $offset bytes
setFile()  : mixed
Change the internal file pointer
setSubset()  : mixed
setTableObject()  : mixed
setTableOffset()  : mixed
skip()  : mixed
unpack()  : mixed
utf8toUnicode()  : mixed
w()  : int
Write $data of type $type in the file from the current position
write()  : mixed
writeFixed()  : mixed
writeFWord()  : mixed
writeInt16()  : mixed
writeInt8()  : mixed
writeLongDateTime()  : mixed
writeUFWord()  : mixed
writeUInt16()  : mixed
writeUInt32()  : mixed
writeUInt8()  : mixed
readTable()  : mixed

Constants

TTEMBED_FAILIFVARIATIONSIMULATED

public mixed TTEMBED_FAILIFVARIATIONSIMULATED = 0x10

TTEMBED_SUBSET

public mixed TTEMBED_SUBSET = 0x1

TTEMBED_TTCOMPRESSED

public mixed TTEMBED_TTCOMPRESSED = 0x4

TTEMBED_VALIDATIONTESTS

public mixed TTEMBED_VALIDATIONTESTS = 0x40

TTEMBED_WEBOBJECT

public mixed TTEMBED_WEBOBJECT = 0x80

TTEMBED_XORENCRYPTDATA

public mixed TTEMBED_XORENCRYPTDATA = 0x10000000

TTMBED_EMBEDEUDC

public mixed TTMBED_EMBEDEUDC = 0x20

Properties

$glyph_all

public mixed $glyph_all = array()

$macCharNames

public static mixed $macCharNames = array(".notdef", ".null", "CR", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis", "aacute", "agrave", "acircumflex", "adieresis", "atilde", "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis", "iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute", "ograve", "ocircumflex", "odieresis", "otilde", "uacute", "ugrave", "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling", "section", "bullet", "paragraph", "germandbls", "registered", "copyright", "trademark", "acute", "dieresis", "notequal", "AE", "Oslash", "infinity", "plusminus", "lessequal", "greaterequal", "yen", "mu", "partialdiff", "summation", "product", "pi", "integral", "ordfeminine", "ordmasculine", "Omega", "ae", "oslash", "questiondown", "exclamdown", "logicalnot", "radical", "florin", "approxequal", "increment", "guillemotleft", "guillemotright", "ellipsis", "nbspace", "Agrave", "Atilde", "Otilde", "OE", "oe", "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft", "quoteright", "divide", "lozenge", "ydieresis", "Ydieresis", "fraction", "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl", "periodcentered", "quotesinglbase", "quotedblbase", "perthousand", "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex", "applelogo", "Ograve", "Uacute", "Ucircumflex", "Ugrave", "dotlessi", "circumflex", "tilde", "macron", "breve", "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "Lslash", "lslash", "Scaron", "scaron", "Zcaron", "zcaron", "brokenbar", "Eth", "eth", "Yacute", "yacute", "Thorn", "thorn", "minus", "multiply", "onesuperior", "twosuperior", "threesuperior", "onehalf", "onequarter", "threequarters", "franc", "Gbreve", "gbreve", "Idot", "Scedilla", "scedilla", "Cacute", "cacute", "Ccaron", "ccaron", "dmacron")

$data

protected mixed $data = array()

$directory

protected mixed $directory = array()

$glyph_subset

protected mixed $glyph_subset = array()

$raw

private static mixed $raw = false

$tableOffset

private mixed $tableOffset = 0

Methods

backtrace()

public static backtrace() : mixed
Return values
mixed

close()

Close the internal file pointer

public close() : mixed
Return values
mixed

convertUInt32ToStr()

Converts a Uint32 value to string

public convertUInt32ToStr(int $uint32) : string
Parameters
$uint32 : int
Return values
string

The string

encode()

public encode([mixed $tags = array() ]) : mixed
Parameters
$tags : mixed = array()
Return values
mixed

getData()

public getData(mixed $name[, mixed $key = null ]) : mixed
Parameters
$name : mixed
$key : mixed = null
Return values
mixed

getFontCopyright()

Get font copyright

public getFontCopyright() : string|null
Return values
string|null

getFontFullName()

Get font full name

public getFontFullName() : string|null
Return values
string|null

getFontName()

Get font name

public getFontName() : string|null
Return values
string|null

getFontPostscriptName()

Get font Postscript name

public getFontPostscriptName() : string|null
Return values
string|null

getFontSubfamily()

Get font subfamily

public getFontSubfamily() : string|null
Return values
string|null

getFontSubfamilyID()

Get font subfamily ID

public getFontSubfamilyID() : string|null
Return values
string|null

getFontType()

public getFontType() : mixed
Return values
mixed

getFontVersion()

Get font version

public getFontVersion() : string|null
Return values
string|null

getFontWeight()

Get font weight

public getFontWeight() : string|null
Return values
string|null

getNameTableString()

Get a specific name table string value from its ID

public getNameTableString(int $nameID) : string|null
Parameters
$nameID : int

The name ID

Return values
string|null

getSubset()

public getSubset() : mixed
Return values
mixed

getTable()

public getTable() : mixed
Return values
mixed

getTableObject()

public getTableObject( $name) : Table
Parameters
$name :
Return values
Table

getTempFile()

Create a temporary file in write mode

public static getTempFile([bool $allow_memory = true ]) : resource
Parameters
$allow_memory : bool = true

Allow in-memory files

Return values
resource

the temporary file pointer resource

getUnicodeCharMap()

public getUnicodeCharMap() : mixed
Return values
mixed

load()

Open a font file in read mode

public load(string $filename) : bool
Parameters
$filename : string

The file name of the font to open

Return values
bool

normalizeFUnit()

public normalizeFUnit(mixed $value[, mixed $base = 1000 ]) : mixed
Parameters
$value : mixed
$base : mixed = 1000
Return values
mixed

open()

Open a font file in a chosen mode

public open(string $filename[, string $mode = self::modeRead ]) : bool
Parameters
$filename : string

The file name of the font to open

$mode : string = self::modeRead

The opening mode

Tags
throws
Exception
Return values
bool

pack()

public pack(mixed $def, mixed $data) : mixed
Parameters
$def : mixed
$data : mixed
Return values
mixed

parse()

public parse() : mixed
Return values
mixed

parseHeader()

public parseHeader() : mixed
Return values
mixed

parseTableEntries()

public parseTableEntries() : mixed
Return values
mixed

pos()

Gives the current position in the file

public pos() : int
Return values
int

The current position

r()

Read a data of type $type in the file from the current position

public r(mixed $type) : mixed
Parameters
$type : mixed

The data type to read

Return values
mixed

The data that was read

read()

Little endian version of the read method

public read(int $n) : string
Parameters
$n : int

The number of bytes to read

Return values
string

readFixed()

public readFixed() : mixed
Return values
mixed

readFWord()

public readFWord() : mixed
Return values
mixed

readInt16()

public readInt16() : mixed
Return values
mixed

readInt16Many()

public readInt16Many(mixed $count) : mixed
Parameters
$count : mixed
Return values
mixed

readInt8()

public readInt8() : mixed
Return values
mixed

readInt8Many()

public readInt8Many(mixed $count) : mixed
Parameters
$count : mixed
Return values
mixed

readLongDateTime()

public readLongDateTime() : mixed
Return values
mixed

readUFWord()

public readUFWord() : mixed
Return values
mixed

readUInt16()

public readUInt16() : mixed
Return values
mixed

readUInt16Many()

public readUInt16Many(mixed $count) : mixed
Parameters
$count : mixed
Return values
mixed

readUInt32()

public readUInt32() : mixed
Return values
mixed

readUInt8()

public readUInt8() : mixed
Return values
mixed

readUInt8Many()

public readUInt8Many(mixed $count) : mixed
Parameters
$count : mixed
Return values
mixed

reduce()

public reduce() : mixed
Return values
mixed

saveAdobeFontMetrics()

public saveAdobeFontMetrics(mixed $file[, mixed $encoding = null ]) : mixed
Parameters
$file : mixed
$encoding : mixed = null
Return values
mixed

seek()

Move the internal file pinter to $offset bytes

public seek(int $offset) : bool
Parameters
$offset : int
Return values
bool

True if the $offset position exists in the file

setFile()

Change the internal file pointer

public setFile(resource $fp) : mixed
Parameters
$fp : resource
Tags
throws
Exception
Return values
mixed

setSubset()

public setSubset(mixed $subset) : mixed
Parameters
$subset : mixed
Return values
mixed

setTableObject()

public setTableObject(mixed $name, Table $data) : mixed
Parameters
$name : mixed
$data : Table
Return values
mixed

setTableOffset()

public setTableOffset(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

skip()

public skip(mixed $n) : mixed
Parameters
$n : mixed
Return values
mixed

unpack()

public unpack(mixed $def) : mixed
Parameters
$def : mixed
Return values
mixed

utf8toUnicode()

public utf8toUnicode(mixed $str) : mixed
Parameters
$str : mixed
Return values
mixed

w()

Write $data of type $type in the file from the current position

public w(mixed $type, mixed $data) : int
Parameters
$type : mixed

The data type to write

$data : mixed

The data to write

Return values
int

The number of bytes read

write()

public write(mixed $data[, mixed $length = null ]) : mixed
Parameters
$data : mixed
$length : mixed = null
Return values
mixed

writeFixed()

public writeFixed(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeFWord()

public writeFWord(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeInt16()

public writeInt16(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeInt8()

public writeInt8(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeLongDateTime()

public writeLongDateTime(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeUFWord()

public writeUFWord(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeUInt16()

public writeUInt16(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeUInt32()

public writeUInt32(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

writeUInt8()

public writeUInt8(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

readTable()

protected readTable(mixed $tag) : mixed
Parameters
$tag : mixed
Return values
mixed

Search results