Lines Matching defs:size

20  * Works in pixels as main units - converting to PDF units when outputing to PDF string and on returning size
219 $this->kf = 1; // constant To convert font size if re-mapped
243 'font-size' => $mpdf->default_font_size, // ****** this is pts
1065 if ($svg_w) { // if width also set, use these values to determine to set size of "pixel"
2190 function ConvertSVGSizePixels($size = 5, $maxsize = 'x')
2209 $size = $this->sizeConverter->convert($size, $maxsize, $fontsize, false) * 1 / (25.4 / $this->mpdf->dpi);
2211 return $size;
2214 function ConvertSVGSizePts($size = 5)
2223 $size = $this->sizeConverter->convert($size, $maxsize, false, true) * 72 / 25.4;
2225 return $size;
2396 $fontsize = $current_style['font-size'] * $this->mpdf->dpi / 72;
2582 $size = $current_style['font-size'] * $this->kf;
2584 $current_style['font-family'] = $this->mpdf->SetFont($current_style['font-family'], $style, $size, false);
2733 if (isset($current_style['font-size-parent'])) {
2734 $this->mpdf->SetFontSize($current_style['font-size-parent']);
2746 $size = $prev_style['font-size'] * $this->kf;
2747 $this->mpdf->SetFont($prev_style['font-family'], $style, $size, false);
2835 $tmp = preg_replace("/(.*)font-size:\s*([a-z0-9.]*|none)(.*)/i", "$2", $critere_style['style']);
2837 $critere_style['font-size'] = $tmp;
2862 // [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]?<'font-size'> [ / <'line-height'> ]? <'font-family'> ]
2888 $current_style['font-size'] = $this->ConvertSVGSizePts($tmp);
2889 $this->mpdf->SetFont('', '', $current_style['font-size'], false);
2939 if (isset($critere_style['font-size']) && $critere_style['font-size'] != 'inherit') {
2940 if (strpos($critere_style['font-size'], '%') !== false) {
2941 $current_style['font-size-parent'] = $current_style['font-size'];
2943 $current_style['font-size'] = $this->ConvertSVGSizePts($critere_style['font-size']);
2944 $this->mpdf->SetFont('', '', $current_style['font-size'], false);