Skip to content

Commit

Permalink
Merge pull request #76 from LinkingYou/patch-1
Browse files Browse the repository at this point in the history
Fixes a problem with php 7.4
  • Loading branch information
PhenX authored Jan 27, 2020
2 parents e7c227a + 31cad91 commit bedcf71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FontLib/AdobeFontMetrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function write($file, $encoding = null) {
$this->endSection("CharMetrics");

$kern = $font->getData("kern", "subtable");
$tree = $kern["tree"];
$tree = is_array($kern) ? $kern["tree"] : null;

This comment has been minimized.

Copy link
@binaryk

binaryk Feb 25, 2020

I need this in a new version.

This comment has been minimized.

Copy link
@tumainimosha

tumainimosha Apr 8, 2020

If we could get a new tagged version with this, that would be great


if (!$encoding && is_array($tree)) {
$this->startSection("KernData");
Expand Down

0 comments on commit bedcf71

Please sign in to comment.