__construct() __construct(string $fontFile = null, string $fontStream = null) Constructor Instantiate a Type1 font file object based on a pre-existing font file on disk. Parameters string $fontFile string $fontStream
read() read(integer $offset = null, integer $length = null) : string Read data from the font file. Parameters integer $offset integer $length Returns string
readFixed() readFixed(integer $mantissaBits, integer $fractionBits, string $bytes) : integer Static method to read and return a fixed-point number Parameters integer $mantissaBits integer $fractionBits string $bytes Returns integer
readInt() readInt(integer $size, string $bytes) : integer Static method to read and return a signed integer Parameters integer $size string $bytes Returns integer
shiftToSigned() shiftToSigned(integer|array $values) : integer|array Method to shift an unpacked signed short from little endian to big endian Parameters integer|array $values Returns integer|array
toEmSpace() toEmSpace(integer $value) : integer Method to convert a value to the representative value in EM. Parameters integer $value Returns integer
getWidthsForGlyphs() getWidthsForGlyphs(array $glyphs) : array Get the widths for the glyphs Parameters array $glyphs Returns array
getStringWidth() getStringWidth(string $string, mixed $size) : mixed Attempt to get string width Parameters string $string mixed $size Returns mixed
offsetSet() offsetSet(string $name, mixed $value) : void Offset set method Parameters string $name mixed $value
offsetGet() offsetGet(string $name) : mixed Offset get method Parameters string $name Throws \InvalidArgumentException Returns mixed
offsetExists() offsetExists(mixed $offset) : boolean Offset exists method Parameters mixed $offset Returns boolean
parseAfm() parseAfm(string $afm) : void Method to parse the Type1 Adobe Font Metrics file Parameters string $afm
strip() strip(string $str) : string Method to strip parentheses et al from a string. Parameters string $str Returns string