A library to read, parse, export and make subsets of different types of font files.
PHP
Latest commit f6d1257 Feb 14, 2016 @PhenX Merge pull request #46 from BrunoDeBarros/patch-3
Fixes "strftime() expects parameter 2 to be integer, string given" PHP Warning, and PHP <7 compatibility issue.

README.md

PHP Font Lib

Build Status

This library can be used to:

  • Read TrueType, OpenType (with TrueType glyphs), WOFF font files
  • Extract basic info (name, style, etc)
  • Extract advanced info (horizontal metrics, glyph names, glyph shapes, etc)
  • Make an Adobe Font Metrics (AFM) file from a font

You can find a demo GUI here.

This project was initiated by the need to read font files in the DOMPDF project.