mirror of
https://github.com/Intervention/image.git
synced 2025-09-01 01:51:43 +02:00
Merge pull request #919 from stevenbuehner/patch-1
Bugfix: Imagic Font.php when using default "top" vertical allignmnent
This commit is contained in:
@@ -70,7 +70,7 @@ class Font extends AbstractFont
|
||||
case 'top':
|
||||
// calculate box size
|
||||
$dimensions = $image->getCore()->queryFontMetrics($draw, $this->text, false);
|
||||
$posy = $posy + $dimensions['textHeight'] * 0.65;
|
||||
$posy = $posy + $dimensions['characterHeight'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user