Lines Matching defs:m

178 		if ($coords[0] !== false && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $coords[0], $m)) {
179 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
185 if ($coords[1] !== false && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $coords[1], $m)) {
186 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
512 if (isset($stops[$i]['offset']) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $stops[$i]['offset'], $m)) {
513 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
616 private function parseMozLinearGradient($m, $repeat)
622 $v = trim($m[1]);
651 if (preg_match('/([\-]*[0-9\.]+)(deg|grad|rad)/i', $bgr[0], $m)) {
652 $angle = $m[1] + 0;
653 if (strtolower($m[2]) === 'grad') {
655 } elseif (strtolower($m[2]) === 'rad') {
676 if (preg_match('/(\d+)[%]/i', $first[0], $m)) {
677 $startx = $m[1] / 100;
678 } elseif (!isset($startx) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[0], $m)) {
679 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
681 $startx = $m[1];
684 if (isset($first[1]) && preg_match('/(\d+)[%]/i', $first[1], $m)) {
685 $starty = 1 - ($m[1] / 100);
686 } elseif (!isset($starty) && isset($first[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[1], $m)) {
687 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
689 $starty = $m[1];
743 private function parseMozRadialGradient($m, $repeat)
749 $v = trim($m[1]);
801 if (preg_match('/(\d+)[%]/i', $first[0], $m)) {
802 $startx = $m[1] / 100;
803 } elseif (!isset($startx) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[0], $m)) {
804 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
806 $startx = $m[1];
809 if (isset($first[1]) && preg_match('/(\d+)[%]/i', $first[1], $m)) {
810 $starty = 1 - ($m[1] / 100);
811 } elseif (!isset($starty) && isset($first[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[1], $m)) {
812 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
814 $starty = $m[1];
838 if (preg_match('/(circle|ellipse)/i', $shape_size, $m)) {
839 $shape = $m[1];
841 if (preg_match('/(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i', $shape_size, $m)) {
842 $size = $m[1];
904 if (preg_match('/(\d+)[%]/', $el[1], $m)) {
905 $stop['offset'] = $m[1] / 100;
909 } elseif (preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $el[1], $m)) {
911 $tmp = $this->sizeConverter->convert($m[1], $this->mpdf->w, $this->mpdf->FontSize, false);
913 $stop['offset'] = $m[1];
930 if (preg_match('/linear-gradient\((.*)\)/', $bg, $m)) {
931 $g = $this->parseMozLinearGradient($m, $repeat);
935 } elseif (preg_match('/radial-gradient\((.*)\)/', $bg, $m)) {
936 $g = $this->parseMozRadialGradient($m, $repeat);