|
Project Information
Links
|
Welcome!This library can be used to retrieve information from font files. It can open a font files and parse the binary metadata to retrieve information about the fonts like the names in the font table. Quick example<?php
namespace Pronamic\Typos;
include 'library/bootstrap.php';
$font = Typos::loadFromFile('fonts/Pecita/Pecita.otf');
$query = array();
$query[] = new NameRecordQuery(NameTable::PLATFORM_MICROSOFT, Microsoft\Encodings::UNICODE_BMP, Microsoft\Languages::ENGLISH_UNITED_STATES);
$query[] = new NameRecordQuery(NameTable::PLATFORM_MACINTOSH, Macintosh\Encodings::ROMAN, Macintosh\Languages::ENGLISH);
echo $font->getFullFontName($query);
ReferencesMicrosoft
AppleOther |