/** * Parse PostScript table (post) */ function get_post_table($font) { if ($this->post_table != '') { return $this->post_table; } $post =& $font->tables['post']; $fh = $font->open(); fseek($fh, $post->offset); // see http://www.microsoft.com/typography/otspec/post.htm $post = new OTTTFontPOST(); $post->Version = FileRead::read_Fixed($fh); $post->italicAngle = FileRead::read_Fixed($fh); $post->underlinePosition = FileRead::read_FWORD($fh); $post->underlineThickness = FileRead::read_FWORD($fh); $post->isFixedPitch = FileRead::read_ULONG($fh); $this->post_table = $post; fclose($fh); return $this->get_post_table($font); }