My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
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);

References

Microsoft

Apple

Other

Powered by Google Project Hosting