classes-Com-Tecnick-Pdf-Font-Import-Core

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Com\Tecnick\Pdf\Font\Import\Core

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-pdf-font

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
throws
Exception

in case of error

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
Return values
mixed
 

© 2004-2023 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy