classes-Com-Tecnick-Pdf-Font-Import-TypeOne

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.

TypeOne extends Core

Com\Tecnick\Pdf\Font\Import\TypeOne

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
decodeNumber()  : mixed
Decode number
extractEplainInfo()  : array<string|int, mixed>
Extract eexec info
extractFontInfo()  : mixed
Extract Font information
extractMetrics()  : mixed
Extract Metrics
extractStem()  : array<string|int, mixed>
Extract eexec info
getCharstringData()  : mixed
Get charstring data
getCid()  : int
get CID
getEplain()  : string
Decrypt eexec encrypted part
getInternalMap()  : array<string|int, mixed>
Extract Font information
getRandomBytes()  : mixed
Get the number of random bytes at the beginning of charstrings
process()  : mixed
Process Type1 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
storeFontData()  : mixed
Store font data

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

decodeNumber()

Decode number

protected decodeNumber(int $idx, int &$cck, int &$cid, array<string|int, mixed> &$ccom, array<string|int, mixed> &$cdec, array<string|int, mixed> &$cwidths) : mixed
Parameters
$idx : int
$cck : int
$cid : int
$ccom : array<string|int, mixed>
$cdec : array<string|int, mixed>
$cwidths : array<string|int, mixed>
Return values
mixed

extractEplainInfo()

Extract eexec info

protected extractEplainInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

extractFontInfo()

Extract Font information

protected extractFontInfo() : mixed
Return values
mixed

extractMetrics()

Extract Metrics

protected extractMetrics() : mixed
Return values
mixed

extractStem()

Extract eexec info

protected extractStem(string $eplain) : array<string|int, mixed>
Parameters
$eplain : string

Decoded eexec encrypted part

Return values
array<string|int, mixed>

getCharstringData()

Get charstring data

protected getCharstringData(mixed $eplain) : mixed
Parameters
$eplain : mixed
Return values
mixed

getCid()

get CID

protected getCid(array<string|int, mixed> $imap, array<string|int, mixed> $val) : int
Parameters
$imap : array<string|int, mixed>
$val : array<string|int, mixed>
Return values
int

getEplain()

Decrypt eexec encrypted part

protected getEplain() : string
Return values
string

getInternalMap()

Extract Font information

protected getInternalMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRandomBytes()

Get the number of random bytes at the beginning of charstrings

protected getRandomBytes(mixed $eplain) : mixed
Parameters
$eplain : mixed
Return values
mixed

process()

Process Type1 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

storeFontData()

Store font data

protected storeFontData() : mixed
Return values
mixed
 

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