Lines Matching defs:size

796 	var $FontSizePt; // current font size in points
797 var $FontSize; // current font size in user unit
2053 function _resizeBackgroundImage($imw, $imh, $cw, $ch, $resize, $repx, $repy, $pba = [], $size = [])
2056 // size is from CSS3 background-size - takes precendence over old resize
2068 if (empty($size) && !$resize) {
2072 if (isset($size['w']) && $size['w']) {
2073 if ($size['w'] == 'contain') {
2075 // to the largest size such that both its width and its height can fit inside the background positioning area.
2083 } elseif ($size['w'] == 'cover') {
2085 // to the smallest size such that both its width and its height can completely cover the background positioning area.
2093 if (stristr($size['w'], '%')) {
2094 $size['w'] = (float) $size['w'];
2095 $size['w'] /= 100;
2096 $size['w'] = ($cw * $size['w']);
2098 if (stristr($size['h'], '%')) {
2099 $size['h'] = (float) $size['h'];
2100 $size['h'] /= 100;
2101 $size['h'] = ($ch * $size['h']);
2103 if ($size['w'] == 'auto' && $size['h'] == 'auto') {
2106 } elseif ($size['w'] == 'auto' && $size['h'] != 'auto') {
2107 $w = $imw * $size['h'] / $imh;
2108 $h = $size['h'];
2109 } elseif ($size['w'] != 'auto' && $size['h'] == 'auto') {
2110 $h = $imh * $size['w'] / $imw;
2111 $w = $size['w'];
2113 $w = $size['w'];
2114 $h = $size['h'];
2177 $size = ['w' => $bsw, 'h' => $bsh];
2179 $size = false;
2182 return ['gradient' => $properties['BACKGROUND-IMAGE'], 'origin' => $origin, 'size' => $size];
2235 return ['image_id' => $image_id, 'orig_w' => $orig_w, 'orig_h' => $orig_h, 'x_pos' => $x_pos, 'y_pos' => $y_pos, 'x_repeat' => $x_repeat, 'y_repeat' => $y_repeat, 'resize' => $resize, 'opacity' => $opacity, 'itype' => $sizesarray['itype'], 'origin' => $origin, 'size' => $size];
2412 list($orig_w, $orig_h, $x_repeat, $y_repeat) = $this->_resizeBackgroundImage($pb['orig_w'], $pb['orig_h'], $pb['w'], $pb['h'], $pb['resize'], $pb['x_repeat'], $pb['y_repeat'], $pb['bpa'], $pb['size']);
2442 if (isset($pb['size']['w']) && $pb['size']['w']) {
2443 $size = $pb['size'];
2445 if ($size['w'] == 'contain') {
2447 // size such that both its width and its height can fit inside the background positioning area.
2455 } elseif ($size['w'] == 'cover') {
2457 // size such that both its width and its height can completely cover the background positioning area.
2466 if (NumericString::containsPercentChar($size['w'])) {
2467 $size['w'] = NumericString::removePercentChar($size['w']);
2468 $size['w'] /= 100;
2469 $size['w'] = ($pb['bpa']['w'] * $size['w']);
2472 if (NumericString::containsPercentChar($size['h'])) {
2473 $size['h'] = NumericString::removePercentChar($size['h']);
2474 $size['h'] /= 100;
2475 $size['h'] = ($pb['bpa']['h'] * $size['h']);
2478 if ($size['w'] == 'auto' && $size['h'] == 'auto') {
2481 } elseif ($size['w'] == 'auto' && $size['h'] != 'auto') {
2482 $iw = $iw * $size['h'] / $ih;
2483 $ih = $size['h'];
2484 } elseif ($size['w'] != 'auto' && $size['h'] == 'auto') {
2485 $ih = $ih * $size['w'] / $iw;
2486 $iw = $size['w'];
2488 $iw = $size['w'];
2489 $ih = $size['h'];
2645 if (isset($pb['size']['w']) && $pb['size']['w']) {
2646 $size = $pb['size'];
2648 if ($size['w'] == 'contain') {
2649 // Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area.
2657 } elseif ($size['w'] == 'cover') {
2658 // Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area.
2666 if (NumericString::containsPercentChar($size['w'])) {
2667 $size['w'] = NumericString::removePercentChar($size['w']);
2668 $size['w'] /= 100;
2669 $size['w'] = ($pb['bpa']['w'] * $size['w']);
2671 if (NumericString::containsPercentChar($size['h'])) {
2672 $size['h'] = NumericString::removePercentChar($size['h']);
2673 $size['h'] /= 100;
2674 $size['h'] = ($pb['bpa']['h'] * $size['h']);
2676 if ($size['w'] == 'auto' && $size['h'] == 'auto') {
2679 } elseif ($size['w'] == 'auto' && $size['h'] != 'auto') {
2680 $iw = $iw * $size['h'] / $ih;
2681 $ih = $size['h'];
2682 } elseif ($size['w'] != 'auto' && $size['h'] == 'auto') {
2683 $ih = $ih * $size['w'] / $iw;
2684 $iw = $size['w'];
2686 $iw = $size['w'];
2687 $ih = $size['h'];
2814 $newformat = (isset($a['newformat']) ? $a['newformat'] : (isset($a['sheet-size']) ? $a['sheet-size'] : ''));
2965 $size = $this->FontSizePt;
2987 $this->SetFont($family, $style, $size, true, true);
3166 $size = $this->FontSizePt;
3233 $this->SetFont($family, $style, $size, true, true); // forces write
3258 $this->SetFont($family, $style, $size, true, true); // forces write
3916 if (empty($font['name']) || $font['originalsize'] != $ttfstat['size'] || $regenerate) {
4020 function SetFont($family, $style = '', $size = 0, $write = true, $forcewrite = false)
4090 if (!$size) {
4091 $size = $this->FontSizePt;
4188 if ($this->FontFamily == $family && $this->FontFamily == $this->currentfontfamily && $this->FontStyle == $style && $this->FontStyle == $this->currentfontstyle && $this->FontSizePt == $size && $this->FontSizePt == $this->currentfontsize && !$forcewrite) {
4197 $this->FontSizePt = $size;
4198 $this->FontSize = $size / Mpdf::SCALE;
4210 $this->currentfontsize = $size;
4220 if (($this->FontFamily == $family) and ( $this->FontStyle == $style) and ( $this->FontSizePt == $size) && !$forcewrite) {
4259 if (($this->FontFamily == $family) and ( $this->FontStyle == $style) and ( $this->FontSizePt == $size) && !$forcewrite) {
4265 $this->FontSizePt = $size;
4266 $this->FontSize = $size / Mpdf::SCALE;
4277 $this->currentfontsize = $size;
4284 function SetFontSize($size, $write = true)
4286 // Set font size in points
4287 if ($this->FontSizePt == $size) {
4290 $this->FontSizePt = $size;
4291 $this->FontSize = $size / Mpdf::SCALE;
4292 $this->currentfontsize = $size;
5494 // font-related size
6242 $saved['size'] = $this->FontSize;
6271 $this->FontSize = $saved['size'];
6345 $saved['size'] = $this->FontSize;
6374 $this->FontSize = $saved['size'];
6689 $ti = $this->sizeConverter->convert($this->blk[$this->blklvl]['text_indent'], $this->blk[$this->blklvl]['inner_width'], $this->blk[$this->blklvl]['InlineProperties']['size'], false); // mPDF 5.7.4
6890 $ti = $this->sizeConverter->convert($this->blk[$this->blklvl]['text_indent'], $this->blk[$this->blklvl]['inner_width'], $this->blk[$this->blklvl]['InlineProperties']['size'], false); // mPDF 5.7.4
7543 $size = $objattr['size'];
7546 $adjx = $size / 2;
7553 $adjx += $size / 2;
7570 $this->_printListBullet($this->x, $this->y, $size, $type, $col);
7667 function _printListBullet($x, $y, $size, $type, $color)
7669 // x and y are the centre of the bullet; size is the width and/or height in mm
7675 $size *= 0.85; // Smaller to appear the same size as circle/disc
7676 $this->writer->write(sprintf('%.3F %.3F %.3F %.3F re f', ($x - $size / 2) * Mpdf::SCALE, ($this->h - $y + $size / 2) * Mpdf::SCALE, ($size) * Mpdf::SCALE, (-$size) * Mpdf::SCALE));
7678 $this->Circle($x, $y, $size / 2, 'F'); // Fill
7680 $lw = $size / 12; // Line width
7682 $this->Circle($x, $y, $size / 2 - $lw / 2, 'S'); // Stroke
7931 $ti = $this->sizeConverter->convert($this->blk[$this->blklvl]['text_indent'], $this->blk[$this->blklvl]['inner_width'], $this->blk[$this->blklvl]['InlineProperties']['size'], false); // mPDF 5.7.4
8522 $ti = $this->sizeConverter->convert($this->blk[$this->blklvl]['text_indent'], $this->blk[$this->blklvl]['inner_width'], $this->blk[$this->blklvl]['InlineProperties']['size'], false); // mPDF 5.7.4
9527 $this->logger->debug(sprintf('PDF file size %s kB', number_format(strlen($this->buffer) / 1024)), ['context' => LogContext::STATISTICS]);
11085 // If an inline element has a font-size less than the block element, and the line-height is set as an em or % value
11137 $fontsize = $this->blk[$this->blklvl]['InlineProperties']['size'];
11187 $fontsize = $font[$k]['size'];
11227 $fontsize = $font[$k]['size'];
11362 $oh = $font[$k]['size']; // == $this->objectbuffer[$k]['fontsize']/Mpdf::SCALE;
12569 if (isset($arr['L']['font-size'])) {
12570 $html .= ' font-size: ' . $arr['L']['font-size'] . 'pt;';
12593 if (isset($arr['C']['font-size'])) {
12594 $html .= ' font-size: ' . $arr['C']['font-size'] . 'pt;';
12617 if (isset($arr['R']['font-size'])) {
12618 $html .= ' font-size: ' . $arr['R']['font-size'] . 'pt;';
12730 $oddhtml .= ' font-size: ' . $this->defaultheaderfontsize . 'pt;';
12758 $evenhtml .= ' font-size: ' . $this->defaultheaderfontsize . 'pt;';
12786 $oddhtml .= ' font-size: ' . $this->defaultheaderfontsize . 'pt;';
12808 $evenhtml .= ' font-size: ' . $this->defaultheaderfontsize . 'pt;';
12875 $oddhtml .= ' font-size: ' . $this->defaultfooterfontsize . 'pt;';
12901 $evenhtml .= ' font-size: ' . $this->defaultfooterfontsize . 'pt;';
12931 $oddhtml .= ' font-size: ' . $this->defaultfooterfontsize . 'pt;';
12954 $evenhtml .= ' font-size: ' . $this->defaultfooterfontsize . 'pt;';
13013 function SetWatermarkImage($src, $alpha = -1, $size = 'D', $pos = 'F')
13019 $this->watermark_size = $size;
13910 // $overflow can be 'hidden', 'visible' or 'auto' - 'auto' causes autofit to size
13960 // font*[family/size/style/weight]/line-height/text*[align/decoration/transform/indent]/color are transferred to $inner
14030 $css .= 'font-size: ' . strtolower($p['FONT-SIZE']) . '; ';
15470 $size = $this->sizeConverter->convert($this->list_symbol_size, $this->FontSize);
15471 $objattr['size'] = $size;
15475 $objattr['width'] = $size + $objattr['offset'];
15711 $size = $this->sizeConverter->convert($this->list_symbol_size, $this->FontSize);
15713 $blt_width = $size + $offset;
16802 // Set font, size, style, color
17633 if (isset($this->blk[$blvl]['background-image']['size']['w']) && $this->blk[$blvl]['background-image']['size']['w']) {
17634 $size = $this->blk[$blvl]['background-image']['size'];
17635 if ($size['w'] != 'contain' && $size['w'] != 'cover') {
17636 if (stristr($size['w'], '%')) {
17637 $size['w'] = (float) $size['w'];
17638 $size['w'] /= 100;
17639 $w *= $size['w'];
17640 } elseif ($size['w'] != 'auto') {
17641 $w = $size['w'];
17643 if (stristr($size['h'], '%')) {
17644 $size['h'] = (float) $size['h'];
17645 $size['h'] /= 100;
17646 $h *= $size['h'];
17647 } elseif ($size['h'] != 'auto') {
17648 $h = $size['h'];
17681 $size = $this->blk[$blvl]['background-image']['size'];
17738 'size' => $size,
18132 // Set font size first so that e.g. MARGIN 0.83em works on font size for this element
18137 if ($type == 'BLOCK' && $this->blklvl > 0 && isset($this->blk[$this->blklvl - 1]['InlineProperties']) && isset($this->blk[$this->blklvl - 1]['InlineProperties']['size'])) {
18138 $mmsize = $this->sizeConverter->convert($v, $this->blk[$this->blklvl - 1]['InlineProperties']['size']);
18144 $this->SetFontSize($mmsize * (Mpdf::SCALE), false); // Get size in points (pt)
23438 $sheetsize = (isset($a['sheetsize']) ? $a['sheetsize'] : (isset($a['sheet-size']) ? $a['sheet-size'] : ''));
23439 $toc_sheetsize = (isset($a['toc_sheetsize']) ? $a['toc_sheetsize'] : (isset($a['toc-sheet-size']) ? $a['toc-sheet-size'] : ''));
23952 $size = count($this->kwt_Reference);
23953 for ($i = 0; $i < $size; $i++) {
23965 $size = count($this->Reference);
23966 for ($i = 0; $i < $size; $i++) {
24019 $size = count($this->Reference);
24020 if ($size == 0) {
24044 for ($i = 0; $i < $size; $i++) {
24060 for ($i = 0; $i < $size; $i++) {
24097 for ($i = 0; $i < $size; $i++) {
26100 function WriteBarcode($code, $showtext = 1, $x = '', $y = '', $size = 1, $border = 0, $paddingL = 1, $paddingR = 1, $paddingT = 2, $paddingB = 2, $height = 1, $bgcol = false, $col = false, $btype = 'ISBN', $supplement = '0', $supplement_code = '', $k = 1)
26158 $size /= $k; // in case resized in a table
26160 $xres = $arrcode['nom-X'] * $size;
26161 $llm = $arrcode['lightmL'] * $arrcode['nom-X'] * $size; // Left Light margin
26162 $rlm = $arrcode['lightmR'] * $arrcode['nom-X'] * $size; // Right Light margin
26164 $bcw = ($arrcode["maxw"] * $xres); // Barcode width = Should always be 31.35mm * $size
26171 $num_height = 3 * $size; // Height of numerals
26172 $fbh = $arrcode['nom-H'] * $size * $height; // Full barcode height incl. numerals
26173 $bch = $fbh - (1.5 * $size); // Barcode height of bars (3mm for numerals)
26176 $tisbnm = 1.5 * $size; // Top margin between isbn (if shown) & bars
26177 $codestr_fontsize = 2.1 * $size;
26356 $this->SetFontSize(($outerfontsize / 3) * 3 * $fh * $size * Mpdf::SCALE); // 3mm numerals (FontSize is larger to account for space above/below characters)
26359 $cw = $this->_getCharWidth($this->CurrentFont['cw'], 32) * 3 * $fh * $size / 1000;
26361 $cw = 600 * 3 * $fh * $size / 1000;
26385 $this->SetFontSize(3 * $fh * $size * Mpdf::SCALE); // 3mm numerals (FontSize is larger to account for space above/below characters)
26402 $this->SetFontSize(($outerfontsize / 3) * 3 * $fh * $size * Mpdf::SCALE); // 3mm numerals (FontSize is larger to account for space above/below characters)
26420 $llm = $fbw - (($arrcode['lightmR'] - $supparrcode['sepM']) * $arrcode['nom-X'] * $size); // Left Light margin
26421 $rlm = $arrcode['lightmR'] * $arrcode['nom-X'] * $size; // Right Light margin
26423 $bcw = ($supparrcode["maxw"] * $xres); // Barcode width = Should always be 31.35mm * $size
26427 $bch = $fbh - (1.5 * $size) - ($num_height + 0.5); // Barcode height of bars (3mm for numerals)
26456 $this->SetFontSize(3 * $fh * $size * Mpdf::SCALE); // 3mm numerals (FontSize is larger to account for space above/below characters)
26462 $this->SetFontSize(($outerfontsize / 3) * 3 * $fh * $size * Mpdf::SCALE); // 3mm numerals (FontSize is larger to account for space above/below characters)
26480 function WriteBarcode2($code, $x = '', $y = '', $size = 1, $height = 1, $bgcol = false, $col = false, $btype = 'IMB', $print_ratio = '', $k = 1, $quiet_zone_left = null, $quiet_zone_right = null)
26502 $size /= $k; // in case resized in a table
26503 $xres = $arrcode['nom-X'] * $size;
26519 $bch = ($arrcode["nom-H"] * $size * $height);
26964 'The HTML code size is larger than pcre.backtrack_limit %d. You should use WriteHTML() with smaller string lengths.',
27314 $size = $this->useTemplate($tplidx, $x, $y, $w);
27315 $this->Rect($x, $y, $size['width'], $size['height']);
27316 $h = max($h, $size['height']);