Type1Parser
in package
Parses Type 1 font files (PFB binary and PFA ASCII formats).
Extracts font metrics, encoding, glyph widths, and segment lengths needed for PDF embedding via Type1FontFile.
Table of Contents
Methods
- __construct() : mixed
- fromBytes() : self
- Create a parser from raw font bytes instead of a file path.
- parse() : Type1Data
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
fromBytes()
Create a parser from raw font bytes instead of a file path.
public
static fromBytes(string $fontBytes) : self
Parameters
- $fontBytes : string
Return values
selfparse()
public
parse() : Type1Data