|
|
hace 5 años | |
|---|---|---|
| .. | ||
| maps | hace 5 años | |
| sample-fonts | hace 5 años | |
| src/FontLib | hace 5 años | |
| tests/FontLib | hace 5 años | |
| .gitattributes | hace 5 años | |
| .gitignore | hace 5 años | |
| .htaccess | hace 5 años | |
| .travis.yml | hace 5 años | |
| LICENSE | hace 5 años | |
| README.md | hace 5 años | |
| bower.json | hace 5 años | |
| composer.json | hace 5 años | |
| index.php | hace 5 años | |
| phpunit.xml.dist | hace 5 años | |
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>';