FontLib\WOFF\File
WOFF font file.
Synopsis
class File
extends File
{
- // 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+";
- // Inherited members from File
- public Header $header;
- protected array $directory;
- protected array $data;
- protected array $glyph_subset;
- public array $glyph_all;
- public static array $macCharNames;
- // Inherited members from BinaryStream
- protected $f;
- // methods
- public void parseHeader()
- public void load()
- // Inherited methods from File
- public void getTable()
- public void setTableOffset()
- public void parse()
- public void utf8toUnicode()
- public void getUnicodeCharMap()
- public void setSubset()
- public void getSubset()
- public void encode()
- public void parseHeader()
- public void getFontType()
- public void parseTableEntries()
- public void normalizeFUnit()
- protected void readTable()
- public Table getTableObject()
- public void setTableObject()
- public void getData()
- public void addDirectoryEntry()
- public void saveAdobeFontMetrics()
- public string|null getNameTableString()
- public string|null getFontCopyright()
- public string|null getFontName()
- public string|null getFontSubfamily()
- public string|null getFontSubfamilyID()
- public string|null getFontFullName()
- public string|null getFontVersion()
- public string|null getFontWeight()
- public string|null getFontPostscriptName()
- public void reduce()
- // 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
Tasks
Line | Task |
---|---|
227 |
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
protected
- $data
- $directory
- $f — resource
- $glyph_subset
public
- $glyph_all
- $header — FontLib\TrueType\Header
- $macCharNames
Methods
public
Inherited from FontLib\TrueType\File
protected
public
- addDirectoryEntry()
- encode()
- getData()
- getFontCopyright() — Get font copyright
- getFontFullName() — Get font full name
- getFontName() — Get font name
- getFontPostscriptName() — Get font Postscript name
- getFontSubfamily() — Get font subfamily
- getFontSubfamilyID() — Get font subfamily ID
- getFontType()
- getFontVersion() — Get font version
- getFontWeight() — Get font weight
- getNameTableString() — Get a specific name table string value from its ID
- getSubset()
- getTable()
- getTableObject()
- getUnicodeCharMap()
- normalizeFUnit()
- parse()
- parseHeader()
- parseTableEntries()
- reduce()
- saveAdobeFontMetrics()
- setSubset()
- setTableObject()
- setTableOffset()
- utf8toUnicode()
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()