Lines Matching refs:w

268 		$w = $this->sizeConverter->convert($wset, $this->svg_info['w'] * (25.4 / $this->mpdf->dpi), $this->mpdf->FontSize, false);
270 if ($w == 0 || $h == 0) {
274 $w *= 1 / (25.4 / $this->mpdf->dpi);
291 // x,y,w,h define the reference rectangle
293 $img_w = $w;
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'];
324 $img_x += $w / 2 - $img_w / 2; // xMid
327 $img_x += $w - $img_w; // xMax
333 $img_x += $w - $img_w; // xMax
339 $img_x += $w / 2 - $img_w / 2; // xMid
342 $img_x += $w - $img_w; // xMax
345 $img_x += $w / 2 - $img_w / 2; // xMid
352 $s = ' q 0 w '; // Line width=0
355 $s .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-($y)) * $this->kp); // line to BR
356 $s .= sprintf('%.3F %.3F l ', ($x + $w) * $this->kp, (-($y + $h)) * $this->kp); // line to TR
375 $w = 100;
380 $w = $attribs['width'];
385 $w = $attribs['rx'] * 2;
390 $w = $attribs['r'] * 2;
407 $w = $maxr - $minl;
413 $w = $this->pathBBox[2];
446 $w = $maxr - $minl;
452 if (!$w || $w == -999999) {
453 $w = 100;
576 $gradient_info['info']['x1'] = ($gradient_info['info']['x1'] - $x_offset) / $w;
582 $gradient_info['info']['x2'] = ($gradient_info['info']['x2'] - $x_offset) / $w;
623 $bboxw = $w;
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;
810 $gradient_info['info']['x0'] = ($gradient_info['info']['x0'] - $x_offset) / $w;
816 $gradient_info['info']['x1'] = ($gradient_info['info']['x1'] - $x_offset) / $w;
822 $gradient_info['info']['rx'] = $gradient_info['info']['r'] / $w;
883 $bboxw = $w;
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;
1047 $this->svg_info['w'] = $vb[2];
1064 if (isset($this->svg_info['w']) && $this->svg_info['w']) { // if 'w' set by viewBox
1066 $this->kp *= ($svg_w / 0.2645) / $this->svg_info['w'];
1067 $this->kf = ($svg_w / 0.2645) / $this->svg_info['w'];
1088 $this->svg_info['w'] = $svg_w / 0.2645; // mm->pixels
1352 $w = '';
1363 $w = "W";
1403 $w = "W";
1422 $path_style .= sprintf('%.3F w ', $lw * $this->kp);
1438 $path_style .= sprintf('%.3F w ', $lw * $this->kp);
1556 $poststyle = $w . ' ' . $op . $fr . ' ' . $fill_gradient . "\n";
2193 // e.g. $w = $this->ConvertSVGSizePixels($arguments['w'],$this->svg_info['w']*(25.4/$this->mpdf->dpi));
2202 $maxsize = $this->svg_info['w'];
2230 if ($arguments['h'] == 0 || $arguments['w'] == 0) {
2237 $w = $this->ConvertSVGSizePixels($arguments['w'], 'x'); // mPDF 4.4.003
2242 if ($rx > $w / 2) {
2243 $rx = $w / 2;
2262 $path_cmd .= sprintf('%.3F %.3F l ', (($x + $w) * $this->kp), -($y * $this->kp));
2263 $path_cmd .= sprintf('%.3F %.3F l ', (($x + $w) * $this->kp), -(($y + $h) * $this->kp));
2275 $path_cmd .= sprintf('%.3F %.3F l ', ($x + ($w - $rx)) * $this->kp, -$y * $this->kp);
2276 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x + ($w - $rx + $kx)) * $this->kp, -$y * $this->kp, ($x + $w) * $this->kp, (-$y + (-$ry + $ky)) * $this->kp, ($x + $w) * $this->kp, (-$y + (-$ry)) * $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);
2461 $strokestr .= sprintf('%.3F w 0 J 0 j ', $linewidth * $this->kp);
2641 $strokestr .= sprintf('%.3F w 1 J 1 j ', $linewidth * $this->kp);
3321 'w' => $this->svg_info['w'] * $this->kp,
3704 $arguments['w'] = $attribs['width'];