3 * @package php-font-lib
4 * @link https://github.com/PhenX/php-font-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
8 namespace FontLib\Table\Type;
11 use FontLib\BinaryStream;
14 * Font table name record.
16 * @package php-font-lib
18 class nameRecord extends BinaryStream {
20 public $platformSpecificID;
27 public static $format = array(
28 "platformID" => self::uint16,
29 "platformSpecificID" => self::uint16,
30 "languageID" => self::uint16,
31 "nameID" => self::uint16,
32 "length" => self::uint16,
33 "offset" => self::uint16,
36 public function map($data) {
37 foreach ($data as $key => $value) {
42 public function getUTF8() {
46 public function getUTF16() {
47 return Font::UTF8ToUTF16($this->string);
50 function __toString() {