Com\Tecnick\Pdf\Font\OutUtil
Tags
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