FontLib\Table\Type\head
`head` font table.
Synopsis
class head
extends Table
{
- // Inherited constants from BinaryStream
- const uint8 = 1;
- const int8 = 2;
- const uint16 = 3;
- const int16 = 4;
- const uint32 = 5;
- const int32 = 6;
- const shortFrac = 7;
- const Fixed = 8;
- const FWord = 9;
- const uFWord = 10;
- const F2Dot14 = 11;
- const longDateTime = 12;
- const char = 13;
- const modeRead = "rb";
- const modeWrite = "wb";
- const modeReadWrite = "rb+";
- // members
- protected array $def = ;
- // Inherited members from BinaryStream
- protected $f;
- // methods
- protected void _parse()
- // Inherited methods from Table
- public final void __construct()
- public File getFont()
- protected void _encode()
- protected void _parse()
- protected void _parseRaw()
- protected void _encodeRaw()
- public void toHTML()
- public final void encode()
- public final void parse()
- // Inherited methods from BinaryStream
- public static void backtrace()
- public bool load()
- public bool open()
- public void close()
- public void setFile()
- public static resource getTempFile()
- public bool seek()
- public int pos()
- public void skip()
- public void read()
- public void write()
- public void readUInt8()
- public void readUInt8Many()
- public void writeUInt8()
- public void readInt8()
- public void readInt8Many()
- public void writeInt8()
- public void readUInt16()
- public void readUInt16Many()
- public void readUFWord()
- public void writeUInt16()
- public void writeUFWord()
- public void readInt16()
- public void readInt16Many()
- public void readFWord()
- public void writeInt16()
- public void writeFWord()
- public void readUInt32()
- public void writeUInt32()
- public void readFixed()
- public void writeFixed()
- public void readLongDateTime()
- public void writeLongDateTime()
- public void unpack()
- public void pack()
- public mixed r()
- public int w()
- public string convertUInt32ToStr()
Hierarchy
Extends
Constants
Name | Value |
---|---|
uint8 | 1 |
int8 | 2 |
uint16 | 3 |
int16 | 4 |
uint32 | 5 |
int32 | 6 |
shortFrac | 7 |
Fixed | 8 |
FWord | 9 |
uFWord | 10 |
F2Dot14 | 11 |
longDateTime | 12 |
char | 13 |
modeRead | "rb" |
modeWrite | "wb" |
modeReadWrite | "rb+" |
Members
Methods
protected
Inherited from FontLib\Table\Table
protected
public
Inherited from FontLib\BinaryStream
public
- backtrace()
- close() — Close the internal file pointer
- convertUInt32ToStr() — Converts a Uint32 value to string
- getTempFile() — Create a temporary file in write mode
- load() — Open a font file in read mode
- open() — Open a font file in a chosen mode
- pack()
- pos() — Gives the current position in the file
- r() — Read a data of type $type in the file from the current position
- read()
- readFWord()
- readFixed()
- readInt16()
- readInt16Many()
- readInt8()
- readInt8Many()
- readLongDateTime()
- readUFWord()
- readUInt16()
- readUInt16Many()
- readUInt32()
- readUInt8()
- readUInt8Many()
- seek() — Move the internal file pinter to $offset bytes
- setFile() — Change the internal file pointer
- skip()
- unpack()
- w() — Write $data of type $type in the file from the current position
- write()
- writeFWord()
- writeFixed()
- writeInt16()
- writeInt8()
- writeLongDateTime()
- writeUFWord()
- writeUInt16()
- writeUInt32()
- writeUInt8()