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