FontLib\Glyph\OutlineComposite
Composite glyph outline
Synopsis
class OutlineComposite
extends Outline
{
- // constants
- const ARG_1_AND_2_ARE_WORDS = 0x0001;
- const ARGS_ARE_XY_VALUES = 0x0002;
- const ROUND_XY_TO_GRID = 0x0004;
- const WE_HAVE_A_SCALE = 0x0008;
- const MORE_COMPONENTS = 0x0020;
- const WE_HAVE_AN_X_AND_Y_SCALE = 0x0040;
- const WE_HAVE_A_TWO_BY_TWO = 0x0080;
- const WE_HAVE_INSTRUCTIONS = 0x0100;
- const USE_MY_METRICS = 0x0200;
- const OVERLAP_COMPOUND = 0x0400;
- // 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
- public array $components = ;
- // Inherited members from Outline
- protected glyf $table;
- protected $offset;
- protected $size;
- public $numberOfContours;
- public $xMin;
- public $yMin;
- public $xMax;
- public $yMax;
- public $raw;
- // Inherited members from BinaryStream
- protected $f;
- // methods
- public void getGlyphIDs()
- public void parseData()
- public void encode()
- public void getSVGContours()
- // Inherited methods from Outline
- public static Outline init()
- public File getFont()
- public void __construct()
- public void parse()
- public void parseData()
- public void encode()
- public void getSVGContours()
- public void getGlyphIDs()
- // 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 |
---|---|
ARG_1_AND_2_ARE_WORDS | 0x0001 |
ARGS_ARE_XY_VALUES | 0x0002 |
ROUND_XY_TO_GRID | 0x0004 |
WE_HAVE_A_SCALE | 0x0008 |
MORE_COMPONENTS | 0x0020 |
WE_HAVE_AN_X_AND_Y_SCALE | 0x0040 |
WE_HAVE_A_TWO_BY_TWO | 0x0080 |
WE_HAVE_INSTRUCTIONS | 0x0100 |
USE_MY_METRICS | 0x0200 |
OVERLAP_COMPOUND | 0x0400 |
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
- $f — resource
- $offset
- $size
- $table — \FontLib\Table\Type\glyf
public
- $components — array
- $numberOfContours
- $raw
- $xMax
- $xMin
- $yMax
- $yMin
Methods
public
Inherited from FontLib\Glyph\Outline
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()