PHP 클래스 Pop\Font\AbstractFont

저자: Nick Sagona, III ([email protected])
상속: extends Pop\File\File
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$ascent integer Font ascent value
$bBox ArrayObject Font bounding box info
$capHeight integer Font cap height value
$descent integer Font descent value
$embeddable boolean Font embeddable flag
$flags ArrayObject Font flags
$glyphWidths array Font glyph widths
$info mixed Font info
$italicAngle float Font italic angle value
$missingWidth integer Missing glyph width
$numberOfGlyphs integer Font number of glyphs value
$numberOfHMetrics integer Font number of horizontal metrics value
$stemH integer Font StemH value
$stemV integer Font StemV value
$unitsPerEm integer Font units per EM value

보호된 프로퍼티들

프로퍼티 타입 설명
$allowed array Array of allowed file types.

공개 메소드들

메소드 설명
__construct ( string $font ) : AbstractFont Constructor
calcFlags ( ) : integer Method to calculate the font flags
readFixed ( integer $mantissaBits, integer $fractionBits, string $bytes ) : integer Static method to read and return a fixed-point number
readInt ( integer $size, string $bytes ) : integer Static method to read and return a signed integer
shiftToSigned ( integer | array $values ) : integer | array Method to shift an unpacked signed short from little endian to big endian
toEmSpace ( integer $value ) : integer Method to convert a value to the representative value in EM.

메소드 상세

__construct() 공개 메소드

Instantiate a font file object based on a pre-existing font file on disk.
public __construct ( string $font ) : AbstractFont
$font string
리턴 AbstractFont

calcFlags() 공개 메소드

Method to calculate the font flags
public calcFlags ( ) : integer
리턴 integer

readFixed() 공개 메소드

Static method to read and return a fixed-point number
public readFixed ( integer $mantissaBits, integer $fractionBits, string $bytes ) : integer
$mantissaBits integer
$fractionBits integer
$bytes string
리턴 integer

readInt() 공개 메소드

Static method to read and return a signed integer
public readInt ( integer $size, string $bytes ) : integer
$size integer
$bytes string
리턴 integer

shiftToSigned() 공개 메소드

Method to shift an unpacked signed short from little endian to big endian
public shiftToSigned ( integer | array $values ) : integer | array
$values integer | array
리턴 integer | array

toEmSpace() 공개 메소드

Method to convert a value to the representative value in EM.
public toEmSpace ( integer $value ) : integer
$value integer
리턴 integer

프로퍼티 상세

$allowed 보호되어 있는 프로퍼티

Array of allowed file types.
protected array $allowed
리턴 array

$ascent 공개적으로 프로퍼티

Font ascent value
public int $ascent
리턴 integer

$bBox 공개적으로 프로퍼티

Font bounding box info
public ArrayObject $bBox
리턴 ArrayObject

$capHeight 공개적으로 프로퍼티

Font cap height value
public int $capHeight
리턴 integer

$descent 공개적으로 프로퍼티

Font descent value
public int $descent
리턴 integer

$embeddable 공개적으로 프로퍼티

Font embeddable flag
public bool $embeddable
리턴 boolean

$flags 공개적으로 프로퍼티

Font flags
public ArrayObject $flags
리턴 ArrayObject

$glyphWidths 공개적으로 프로퍼티

Font glyph widths
public array $glyphWidths
리턴 array

$info 공개적으로 프로퍼티

Font info
public mixed $info
리턴 mixed

$italicAngle 공개적으로 프로퍼티

Font italic angle value
public float $italicAngle
리턴 float

$missingWidth 공개적으로 프로퍼티

Missing glyph width
public int $missingWidth
리턴 integer

$numberOfGlyphs 공개적으로 프로퍼티

Font number of glyphs value
public int $numberOfGlyphs
리턴 integer

$numberOfHMetrics 공개적으로 프로퍼티

Font number of horizontal metrics value
public int $numberOfHMetrics
리턴 integer

$stemH 공개적으로 프로퍼티

Font StemH value
public int $stemH
리턴 integer

$stemV 공개적으로 프로퍼티

Font StemV value
public int $stemV
리턴 integer

$unitsPerEm 공개적으로 프로퍼티

Font units per EM value
public int $unitsPerEm
리턴 integer