Type3Font
extends Font
in package
Type 3 font (/Subtype /Type3).
Glyph procedures are defined as PDF content streams inside the font itself rather than using an external font program. Required fields per ISO 32000-2 §9.6.4: FontBBox, FontMatrix, CharProcs, Encoding, FirstChar, LastChar, Widths, and (for tagged PDF) FontDescriptor.
Table of Contents
Constants
- PDF_TYPE = 'Font'
Properties
- $baseFont : PdfName|null
- $charProcs : array<string, PdfReference>
- $encoding : PdfReference|PdfName|null
- $firstChar : int|null
- $fontBBox : PdfArray|null
- $fontDescriptor : PdfReference|null
- $fontMatrix : PdfArray|null
- $generationNumber : int
- $lastChar : int|null
- $objectNumber : int
- $resources : Resources|PdfDictionary|null
- $subtype : PdfName|null
- $toUnicode : PdfReference|null
- $widths : PdfArray|null
Methods
- __construct() : mixed
- addCharProc() : void
- Register a glyph procedure by name.
- toIndirectObject() : string
- Wrap the object in an indirect object structure: X Y obj ... endobj
- toPdf() : string
- Serialize the object's dictionary/value to PDF syntax.
Constants
PDF_TYPE
public
mixed
PDF_TYPE
= 'Font'
Properties
$baseFont
public
PdfName|null
$baseFont
= null
$charProcs
public
array<string, PdfReference>
$charProcs
= []
name => content stream reference
$encoding
public
PdfReference|PdfName|null
$encoding
= null
$firstChar
public
int|null
$firstChar
= null
$fontBBox
public
PdfArray|null
$fontBBox
= null
$fontDescriptor
public
PdfReference|null
$fontDescriptor
= null
$fontMatrix
public
PdfArray|null
$fontMatrix
= null
$generationNumber
public
int
$generationNumber
= 0
$lastChar
public
int|null
$lastChar
= null
$objectNumber
public
int
$objectNumber
= 0
$resources
public
Resources|PdfDictionary|null
$resources
= null
$subtype
public
PdfName|null
$subtype
= null
$toUnicode
public
PdfReference|null
$toUnicode
= null
$widths
public
PdfArray|null
$widths
= null
Methods
__construct()
public
__construct([string|null $baseFontName = null ]) : mixed
Parameters
- $baseFontName : string|null = null
addCharProc()
Register a glyph procedure by name.
public
addCharProc(string $name, PdfReference $stream) : void
Parameters
- $name : string
- $stream : PdfReference
toIndirectObject()
Wrap the object in an indirect object structure: X Y obj ... endobj
public
toIndirectObject() : string
Return values
stringtoPdf()
Serialize the object's dictionary/value to PDF syntax.
public
toPdf() : string