Skip to content

Commit

Permalink
Fixed wrong comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Feb 14, 2022
1 parent 3a35dc1 commit dd09713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EasySVG.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function setFontSVG(string $filepath): void
$this->font->glyphs[$unicode]->d = $z->getAttribute('d');

// save em value for letter spacing (109 is unicode for the letter 'm')
if ($unicode === '109') {
if ($unicode === 109) {
$this->font->em = $this->font->glyphs[$unicode]->horizAdvX;
}
}
Expand Down

0 comments on commit dd09713

Please sign in to comment.