FontLib\Table\Type\name
`name` font table.
Synopsis
class name
extends Table
{
- // constants
- const NAME_COPYRIGHT = 0;
- const NAME_NAME = 1;
- const NAME_SUBFAMILY = 2;
- const NAME_SUBFAMILY_ID = 3;
- const NAME_FULL_NAME = 4;
- const NAME_VERSION = 5;
- const NAME_POSTSCRIPT_NAME = 6;
- const NAME_TRADEMARK = 7;
- const NAME_MANUFACTURER = 8;
- const NAME_DESIGNER = 9;
- const NAME_DESCRIPTION = 10;
- const NAME_VENDOR_URL = 11;
- const NAME_DESIGNER_URL = 12;
- const NAME_LICENSE = 13;
- const NAME_LICENSE_URL = 14;
- const NAME_PREFERRE_FAMILY = 16;
- const NAME_PREFERRE_SUBFAMILY = 17;
- const NAME_COMPAT_FULL_NAME = 18;
- const NAME_SAMPLE_TEXT = 19;
- // 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
- private static array $header_format = ;
- public static array $nameIdCodes = ;
- public static array $platforms = ;
- public static array $platformSpecific = ;
- // Inherited members from BinaryStream
- protected $f;
- // 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 |
---|---|
NAME_COPYRIGHT | 0 |
NAME_NAME | 1 |
NAME_SUBFAMILY | 2 |
NAME_SUBFAMILY_ID | 3 |
NAME_FULL_NAME | 4 |
NAME_VERSION | 5 |
NAME_POSTSCRIPT_NAME | 6 |
NAME_TRADEMARK | 7 |
NAME_MANUFACTURER | 8 |
NAME_DESIGNER | 9 |
NAME_DESCRIPTION | 10 |
NAME_VENDOR_URL | 11 |
NAME_DESIGNER_URL | 12 |
NAME_LICENSE | 13 |
NAME_LICENSE_URL | 14 |
NAME_PREFERRE_FAMILY | 16 |
NAME_PREFERRE_SUBFAMILY | 17 |
NAME_COMPAT_FULL_NAME | 18 |
NAME_SAMPLE_TEXT | 19 |
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
private
- $header_format
protected
- $def
- $entry — FontLib\Table\DirectoryEntry
- $f — resource
public
- $data
- $nameIdCodes
- $platformSpecific
- $platforms
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()