Currently get Fatal error: Uncaught Exception: Unknown encoding whenever passing an encoding to saveAdobeFontMetrics. This is because we aren't correctly pointing to the maps/ directory.
dirname(__FILE__) gives you php-font-lib/src/Fontlibdirname(__FILE__) . '/../' gives you php-font-lib/src/
We need one more level up, to hit /maps.
P.S. We can also use __DIR__ . '/../../' OR dirname(__DIR__) . '/../'
Currently get
Fatal error: Uncaught Exception: Unknown encoding
whenever passing an encoding tosaveAdobeFontMetrics
. This is because we aren't correctly pointing to themaps/
directory.dirname(__FILE__)
gives youphp-font-lib/src/Fontlib
dirname(__FILE__) . '/../'
gives youphp-font-lib/src/
We need one more level up, to hit /maps.
P.S. We can also use
__DIR__ . '/../../'
ORdirname(__DIR__) . '/../'