dompdf / php-font-lib

A library to read, parse, export and make subsets of different types of font files.
GNU Lesser General Public License v2.1
1.73k stars 255 forks source link

Notice in font_truetype.cls.php #4

Closed PhenX closed 11 years ago

PhenX commented 11 years ago

Original author: vkoz...@gmail.com (October 17, 2012 15:47:48)

There seems to be a bug in font_truetype.cls.php, line 259

if (!in_array($glyphIndex, $gids) && isset($indexToLoc[$glyphIndex])) {

instead it should probably say

if (!in_array($glyphIndex, $gids) && isset($gidToCid[$glyphIndex])) {

Original issue: http://code.google.com/p/php-font-lib/issues/detail?id=2

PhenX commented 11 years ago

As this code was removed, this issue doesn't exist anymore.