classes-Com-Tecnick-Pdf-Font-OutFont

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.

OutFont extends OutUtil

Com\Tecnick\Pdf\Font\OutFont

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

$enc  : Encrypt
Encrypt object
$pon  : int
Current PDF object number
getCharWidths()  : string
Outputs font widths
getCid0()  : mixed
Get the PDF output string for a CID-0 font.
getCore()  : mixed
Get the PDF output string for a Core font.
getFontFullPath()  : string
Return font full path
getKeyValOut()  : string
Returns the formatted key/value PDF string
getTrueType()  : mixed
Get the PDF output string for a Core font.
getTrueTypeUnicode()  : mixed
Get the PDF output string for a TrueTypeUnicode font.
getWidthRanges()  : array<string|int, mixed>
get width ranges of characters
optimizeWidthRanges()  : array<string|int, mixed>
Optimize width ranges
uniToCid()  : array<string|int, mixed>
Convert Unicode to CID

Properties

$enc

Encrypt object

protected Encrypt $enc

$pon

Current PDF object number

protected int $pon

Methods

getCharWidths()

Outputs font widths

protected getCharWidths(array<string|int, mixed> $font, int $cidoffset) : string
Parameters
$font : array<string|int, mixed>

Font to process

$cidoffset : int

Offset for CID values

Return values
string

PDF command string for font widths

getCid0()

Get the PDF output string for a CID-0 font.

protected getCid0(array<string|int, mixed> $font) : mixed

A Type 0 CIDFont contains glyph descriptions based on the Adobe Type 1 font format

Parameters
$font : array<string|int, mixed>

Font to process

return string

Return values
mixed

getCore()

Get the PDF output string for a Core font.

protected getCore(array<string|int, mixed> $font) : mixed
Parameters
$font : array<string|int, mixed>

Font to process

return string

Return values
mixed

getFontFullPath()

Return font full path

protected getFontFullPath(string $fontdir, string $file) : string
Parameters
$fontdir : string

Original font directory

$file : string

Font file name.

Return values
string

Font full path or empty string

getKeyValOut()

Returns the formatted key/value PDF string

protected getKeyValOut(string $key, mixed $val) : string
Parameters
$key : string

Key name

$val : mixed
Return values
string

getTrueType()

Get the PDF output string for a Core font.

protected getTrueType(array<string|int, mixed> $font) : mixed
Parameters
$font : array<string|int, mixed>

Font to process

return string

Return values
mixed

getTrueTypeUnicode()

Get the PDF output string for a TrueTypeUnicode font.

protected getTrueTypeUnicode(array<string|int, mixed> $font) : mixed

Based on PDF Reference 1.3 (section 5)

Parameters
$font : array<string|int, mixed>

Font to process

return string

Return values
mixed

getWidthRanges()

get width ranges of characters

protected getWidthRanges(array<string|int, mixed> $font, int $cidoffset) : array<string|int, mixed>
Parameters
$font : array<string|int, mixed>

Font to process

$cidoffset : int

Offset for CID values

Return values
array<string|int, mixed>

optimizeWidthRanges()

Optimize width ranges

protected optimizeWidthRanges(array<string|int, mixed> $range) : array<string|int, mixed>
Parameters
$range : array<string|int, mixed>

Widht Ranges

Return values
array<string|int, mixed>

uniToCid()

Convert Unicode to CID

protected uniToCid(array<string|int, mixed> &$font, int $cidoffset) : array<string|int, mixed>
Parameters
$font : array<string|int, mixed>

Font to process

$cidoffset : int

Offset for CID values

Return values
array<string|int, mixed>

Processed font

 

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