File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public static function load($file) {
5959 }
6060
6161 if ($ class ) {
62- $ class = " FontLib \\$ class " ;
62+ $ class = __NAMESPACE__ . " \\$ class " ;
6363
6464 /** @var TrueType\File $obj */
6565 $ obj = new $ class ;
Original file line number Diff line number Diff line change @@ -380,11 +380,6 @@ function parseHeader() {
380380 $ this ->header ->parse ();
381381 }
382382
383- function getFontType (){
384- $ class_parts = explode ("\\" , get_class ($ this ));
385- return $ class_parts [1 ];
386- }
387-
388383 function parseTableEntries () {
389384 $ this ->parseHeader ();
390385
@@ -396,9 +391,7 @@ function parseTableEntries() {
396391 return ;
397392 }
398393
399-
400- $ type = $ this ->getFontType ();
401- $ class = "FontLib \\$ type \\TableDirectoryEntry " ;
394+ $ class = __NAMESPACE__ . "\\TableDirectoryEntry " ;
402395
403396 for ($ i = 0 ; $ i < $ this ->header ->data ["numTables " ]; $ i ++) {
404397 /** @var TableDirectoryEntry $entry */
You can’t perform that action at this time.
0 commit comments