|
|
%!s(int64=8) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| maps | %!s(int64=8) %!d(string=hai) anos | |
| sample-fonts | %!s(int64=8) %!d(string=hai) anos | |
| src | %!s(int64=8) %!d(string=hai) anos | |
| tests | %!s(int64=8) %!d(string=hai) anos | |
| .travis~20171216-130150.yml | %!s(int64=8) %!d(string=hai) anos | |
| LICENSE~20171216-130150 | %!s(int64=8) %!d(string=hai) anos | |
| README~20171216-130150.md | %!s(int64=8) %!d(string=hai) anos | |
| bower~20171216-130150.json | %!s(int64=8) %!d(string=hai) anos | |
| composer~20171216-130150.json | %!s(int64=8) %!d(string=hai) anos | |
| index~20171216-130150.php | %!s(int64=8) %!d(string=hai) anos | |
| phpunit.xml~20171216-130150.dist | %!s(int64=8) %!d(string=hai) anos | |
| ~20171216-130150.htaccess | %!s(int64=8) %!d(string=hai) anos | |
This library can be used to:
You can find a demo GUI here.
This project was initiated by the need to read font files in the DOMPDF project.
$font = \FontLib\Font::load('../../fontfile.ttf');
$font->parse(); // for getFontWeight() to work this call must be done first!
echo $font->getFontName() .'<br>';
echo $font->getFontSubfamily() .'<br>';
echo $font->getFontSubfamilyID() .'<br>';
echo $font->getFontFullName() .'<br>';
echo $font->getFontVersion() .'<br>';
echo $font->getFontWeight() .'<br>';
echo $font->getFontPostscriptName() .'<br>';