MMType1Font
extends Font
in package
Multiple Master Type 1 font (/Subtype /MMType1).
Multiple Master fonts are a Type 1 extension that allow interpolation across design axes (weight, width, optical size, style). In PDF the BaseFont name encodes the selected instance, with underscores separating axis values and spaces replaced with underscores (ISO 32000-2 §9.6.2.3).
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V1_1
Table of Contents
Constants
- PDF_TYPE = 'Font'
Properties
- $baseFont : PdfName|null
- $encoding : PdfReference|PdfName|null
- $firstChar : int|null
- $fontDescriptor : PdfReference|null
- $generationNumber : int
- $lastChar : int|null
- $objectNumber : int
- $subtype : PdfName|null
- $toUnicode : PdfReference|null
- $widths : PdfArray|null
Methods
- __construct() : mixed
- 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
$encoding
public
PdfReference|PdfName|null
$encoding
= null
$firstChar
public
int|null
$firstChar
= null
$fontDescriptor
public
PdfReference|null
$fontDescriptor
= null
$generationNumber
public
int
$generationNumber
= 0
$lastChar
public
int|null
$lastChar
= null
$objectNumber
public
int
$objectNumber
= 0
$subtype
public
PdfName|null
$subtype
= null
$toUnicode
public
PdfReference|null
$toUnicode
= null
$widths
public
PdfArray|null
$widths
= null
Methods
__construct()
public
__construct(string $baseFontName) : mixed
Parameters
- $baseFontName : string
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