Com\Tecnick\Pdf\Font\Import\Core
Tags
Table of Contents
- $fdt : array<string|int, mixed>
- Extracted font metrics
- $font : string
- Content of the input font file
- __construct() : mixed
- getFontMetrics() : string
- Get all the extracted font metrics
- extractMetrics() : mixed
- Extract Metrics
- process() : mixed
- Process Core font
- processMetricRow() : mixed
- Extract Metrics
- remapValues() : mixed
- Map values to the correct key name
- setCharWidths() : mixed
- Set Char widths
- setFlags() : mixed
- Set Flags
- setMissingValues() : mixed
- Set Missing values
Properties
$fdt
Extracted font metrics
protected array<string|int,
mixed> $fdt = array()
$font
Content of the input font file
protected string $font = ''
Methods
__construct()
public __construct(string $font,
array<string|int,
mixed> $fdt)
: mixed
Parameters
- $font : string
-
Content of the input font file
- $fdt : array<string|int, mixed>
-
Extracted font metrics
Tags
Return values
mixed —getFontMetrics()
Get all the extracted font metrics
public getFontMetrics()
: string
Return values
string —extractMetrics()
Extract Metrics
protected extractMetrics()
: mixed
Return values
mixed —process()
Process Core font
protected process()
: mixed
Return values
mixed —processMetricRow()
Extract Metrics
protected processMetricRow(array<string|int,
mixed> $col,
array<string|int,
mixed> &$cwd)
: mixed
Parameters
- $col : array<string|int, mixed>
-
Array containing row elements to process
- $cwd : array<string|int, mixed>
-
Array contianing cid widths
Return values
mixed —remapValues()
Map values to the correct key name
protected remapValues()
: mixed
Return values
mixed —setCharWidths()
Set Char widths
protected setCharWidths(array<string|int,
mixed> $cwidths)
: mixed
Parameters
- $cwidths : array<string|int, mixed>
-
Extracted widths
Return values
mixed —setFlags()
Set Flags
protected setFlags()
: mixed
Return values
mixed —setMissingValues()
Set Missing values
protected setMissingValues()
: mixed