class-Com.Tecnick.Pdf.Font.Stack

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.

Class Stack

Com\Tecnick\Pdf\Font\Stack

Com\Tecnick\Pdf\Font\Buffer
Extended by Com\Tecnick\Pdf\Font\Stack
Namespace: Com\Tecnick\Pdf\Font
Package: PdfFont
Category: Library
Copyright: 2011-2015 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2011-05-23
Link: https://github.com/tecnickcom/tc-lib-pdf-font
Located at Stack.php
Methods summary
public array
# insert( integer & $objnum, string $font, string $style = '', integer $size = null, float $spacing = null, float $stretching = null, string $ifile = '', boolean $subset = null )

Insert a font into the stack

public array
# getCurrentFont( )

Returns the current font data array

public array
# popLastFont( )

Remove and return the last inserted font

public array
# replaceMissingChars( array $uniarr, array $subs = array() )

Replace missing characters with selected substitutions

public boolean
# isCharDefined( integer $ord )

Returns true if the specified unicode value is defined in the current font

public integer
# getCharWidth( integer $ord )

Returns true if the specified unicode value is defined in the current font

public float
# getOrdArrWidth( array $uniarr )

Returns the lenght of the string specified using an array of codepoints.

public array
# getCharBBox( integer $ord )

Returns the glyph bounding box of the specified character in the current font in user units.

public integer
# replaceChar( integer $oldchar, integer $newchar )

Replace a char if it is defined on the current font.

protected array
# getFontMetric( array $font )

Returns the font metrics associated to the input key.

protected
# getInputSize( $size = null )

Normalize the input size

protected
# getInputSpacing( float $spacing = null )

Normalize the input spacing

protected
# getInputStretching( float $stretching = null )

Normalize the input stretching

protected array
# getNormalizedFontKeys( string $fontfamily )

Return normalized font keys

Methods inherited from Com\Tecnick\Pdf\Font\Buffer
__construct(), add(), addSubsetChar(), getEncDiffs(), getFont(), getFonts(), isSubsetMode(), isValidKey(), setFontDiff(), setFontFile(), setFontSubKey()
Constants summary
integer DEFAULT_SIZE

Default font size in points

# 10
Properties summary
protected array $stack

Array (stack) containing fonts in order of insertion. The last item is the current font.

# array()
protected integer $index

Current font index

# -1
protected array $metric

Array containing font metrics for each fontkey-size combination.

# array()
Properties inherited from Com\Tecnick\Pdf\Font\Buffer
$encdiff, $file, $font, $kunit, $numdiffs, $numfonts, $pdfa, $subset, $unicode
 

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