lundi 31 décembre 2018

How to get Font Sub Family in English language with PhenX/php-font-lib?

I want to get some informations in english language of font file with "PhenX/php-font-lib", but when parse font file information it return another language other than english. How to get english name of these fields ?

Example: Font Lib: https://github.com/PhenX/php-font-lib
I haved tried with "Times New Roman Bold Italic.ttf"

$font = Font::load($filePath);
$font->parse();

$fontName = $font->getFontName(); // Times New Roman
$fontSubFamily = $font->getFontSubfamily(); // Gras Italique
$fontFullName = $font->getFontFullName(); // Times New Roman Gras Italique

Expected: Bold Italic
Actual: Gras Italique

Here is the meta info of Localization Tables of this font file:
localization tables



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2F2GbFt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire