|
|
7 년 전 | |
|---|---|---|
| .. | ||
| maps | 7 년 전 | |
| sample-fonts | 7 년 전 | |
| src | 7 년 전 | |
| tests | 7 년 전 | |
| .htaccess | 7 년 전 | |
| .travis.yml | 7 년 전 | |
| LICENSE | 7 년 전 | |
| README.md | 7 년 전 | |
| bower.json | 7 년 전 | |
| composer.json | 7 년 전 | |
| index.php | 7 년 전 | |
| phpunit.xml.dist | 7 년 전 | |
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>';