classes-Com-Tecnick-Pdf-Font-OutUtil

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.

OutUtil

Com\Tecnick\Pdf\Font\OutUtil

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

getCharWidths()  : string
Outputs font widths
getFontFullPath()  : string
Return font full path
getWidthRanges()  : array<string|int, mixed>
get width ranges of characters
optimizeWidthRanges()  : array<string|int, mixed>
Optimize width ranges

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

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

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>
 

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