From a58f87a12eea6bcb57a2f1e6e0b87c11a526e795 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 30 Apr 2020 15:18:42 +0000 Subject: [PATCH] fix #3625 @2 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 2ece6d62b..3dae0f9ba 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -1193,7 +1193,11 @@ class textLink extends contentLink public function getCSS() { $font = $this->compiler->addFont($this->image); - $fz = round($this->height * $this->getCssScale() / $font['capHeight'], 2); + if (!$font['capHeight']) { + $font['capHeight'] = 1; + } + $fz = $this->height * $this->getCssScale(); + $fz = round($fz / $font['capHeight'], 2); return 'line-height:' . $font['capHeight'] . ';font-size:' . $fz . 'px;font-family:' . $font['family'] . ';color:' . wsHTML5::colorToCSS($this->extra, 1) . ';'; } -- 2.39.5