Lines Matching refs:h

269 		$h = $this->sizeConverter->convert($hset, $this->svg_info['h'] * (25.4 / $this->mpdf->dpi), $this->mpdf->FontSize, false);
270 if ($w == 0 || $h == 0) {
275 $h *= 1 / (25.4 / $this->mpdf->dpi);
291 // x,y,w,h define the reference rectangle
292 $img_h = $h;
307 if ($info['h'] / $info['w'] > $h / $w) {
309 $img_w = $img_h * $info['w'] / $info['h'];
311 $img_h = $img_w * $info['h'] / $info['w'];
313 } elseif ($info['h'] / $info['w'] < $h / $w) {
315 $img_h = $img_w * $info['h'] / $info['w'];
317 $img_w = $img_h * $info['w'] / $info['h'];
331 $img_y += $h / 2 - $img_h / 2; // yMid
334 $img_y += $h / 2 - $img_h / 2; // yMid
337 $img_y += $h - $img_h; // yMax
340 $img_y += $h - $img_h; // yMax
343 $img_y += $h - $img_h; // yMax
346 $img_y += $h / 2 - $img_h / 2; // yMid
353 $s .= sprintf('%.3F %.3F m ', ($x) * $this->kp, (-($y + $h)) * $this->kp); // start point TL before the arc
356 $s .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-($y + $h)) * $this->kp); // line to TR
357 $s .= sprintf('%.3F %.3F l ', ($x) * $this->kp, (-($y + $h)) * $this->kp); // line to TL
376 $h = 100;
381 $h = $attribs['height'];
386 $h = $attribs['ry'] * 2;
391 $h = $attribs['r'] * 2;
408 $h = $maxb - $mint;
414 $h = $this->pathBBox[3];
447 $h = $maxb - $mint;
455 if (!$h || $h == -999999) {
456 $h = 100;
579 $gradient_info['info']['y1'] = ($gradient_info['info']['y1'] - $y_offset) / $h;
585 $gradient_info['info']['y2'] = ($gradient_info['info']['y2'] - $y_offset) / $h;
624 $bboxh = $h;
637 if ($w >= $h) {
638 $y1 *= $h / $w;
639 $y2 *= $h / $w;
642 $x1 *= $w / $h;
643 $x2 *= $w / $h;
804 if ($w > $h) {
805 $h = $w;
807 $w = $h;
813 $gradient_info['info']['y0'] = ($gradient_info['info']['y0'] - $y_offset) / $h;
819 $gradient_info['info']['y1'] = ($gradient_info['info']['y1'] - $y_offset) / $h;
825 $gradient_info['info']['ry'] = $gradient_info['info']['r'] / $h;
884 $bboxh = $h;
907 if ($w >= $h) {
908 $y1 *= $h / $w;
909 $y0 *= $h / $w;
910 $rx *= $h / $w;
911 $ry *= $h / $w;
914 $x1 *= $w / $h;
915 $x0 *= $w / $h;
916 $rx *= $w / $h;
917 $ry *= $w / $h;
1048 $this->svg_info['h'] = $vb[3];
1069 $this->kp *= ($svg_h / 0.2645) / $this->svg_info['h'];
1070 $this->kf = ($svg_h / 0.2645) / $this->svg_info['h'];
1089 $this->svg_info['h'] = $svg_h / 0.2645; // mm->pixels
1672 case 'h': // a very simple horizontal line
2024 $path_cmd .= 'h ';
2200 $maxsize = $this->svg_info['h'];
2230 if ($arguments['h'] == 0 || $arguments['w'] == 0) {
2236 $h = $this->ConvertSVGSizePixels($arguments['h'], 'y'); // mPDF 4.4.003
2247 if ($ry > $h / 2) {
2248 $ry = $h / 2;
2263 $path_cmd .= sprintf('%.3F %.3F l ', (($x + $w) * $this->kp), -(($y + $h) * $this->kp));
2264 $path_cmd .= sprintf('%.3F %.3F l ', ($x) * $this->kp, -(($y + $h) * $this->kp));
2265 $path_cmd .= sprintf('%.3F %.3F l h ', ($x * $this->kp), -($y * $this->kp));
2277 $path_cmd .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-$y + (-$h + $ry)) * $this->kp);
2278 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x + $w) * $this->kp, (-$y + (-$h - $ky + $ry)) * $this->kp, ($x + ($w - $rx + $kx)) * $this->kp, (-$y + (-$h)) * $this->kp, ($x + ($w - $rx)) * $this->kp, (-$y + (-$h)) * $this->kp);
2280 $path_cmd .= sprintf('%.3F %.3F l ', ($x + $rx) * $this->kp, (-$y + (-$h)) * $this->kp);
2281 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x + ($rx - $kx)) * $this->kp, (-$y + (-$h)) * $this->kp, $x * $this->kp, (-$y + (-$h - $ky + $ry)) * $this->kp, $x * $this->kp, (-$y + (-$h + $ry)) * $this->kp);
2283 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c h ', $x * $this->kp, (-$y + (-$ry + $ky)) * $this->kp, ($x + ($rx - $kx)) * $this->kp, -$y * $this->kp, ($x + $rx) * $this->kp, -$y * $this->kp);
2323 $path_cmd .= 'h ';
2354 // $path_cmd .= 'h '; // ?? In error - don't close subpath here
2372 $path_cmd .= 'h ';
3322 'h' => -$this->svg_info['h'] * $this->kp,
3708 $arguments['h'] = $attribs['height'];