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) {
59
59
}
60
60
61
61
if ($ class ) {
62
- $ class = " FontLib \\$ class " ;
62
+ $ class = __NAMESPACE__ . " \\$ class " ;
63
63
64
64
/** @var TrueType\File $obj */
65
65
$ obj = new $ class ;
Original file line number Diff line number Diff line change @@ -380,11 +380,6 @@ function parseHeader() {
380
380
$ this ->header ->parse ();
381
381
}
382
382
383
- function getFontType (){
384
- $ class_parts = explode ("\\" , get_class ($ this ));
385
- return $ class_parts [1 ];
386
- }
387
-
388
383
function parseTableEntries () {
389
384
$ this ->parseHeader ();
390
385
@@ -396,9 +391,7 @@ function parseTableEntries() {
396
391
return ;
397
392
}
398
393
399
-
400
- $ type = $ this ->getFontType ();
401
- $ class = "FontLib \\$ type \\TableDirectoryEntry " ;
394
+ $ class = __NAMESPACE__ . "\\TableDirectoryEntry " ;
402
395
403
396
for ($ i = 0 ; $ i < $ this ->header ->data ["numTables " ]; $ i ++) {
404
397
/** @var TableDirectoryEntry $entry */
You can’t perform that action at this time.
0 commit comments