Lines Matching +full:font +full:- +full:size +(+path:plugin +path:dw2pdf) -(+path:plugin +path:dw2pdf +path:lang)

13 		$tag = $this->getTagName();
14 $this->mpdf->ignorefollowingspaces = false;
50 $objattr['title'] = $this->mpdf->lesser_entity_decode($objattr['title']);
51 if ($this->mpdf->onlyCoreFonts) {
52 $objattr['title'] = mb_convert_encoding($objattr['title'], $this->mpdf->mb_enc, 'UTF-8');
54 if ($this->mpdf->useActiveForms && isset($attr['NAME'])) {
59 $attr['VALUE'] = $this->mpdf->lesser_entity_decode($attr['VALUE']);
60 if ($this->mpdf->onlyCoreFonts) {
61 $attr['VALUE'] = mb_convert_encoding($attr['VALUE'], $this->mpdf->mb_enc, 'UTF-8');
66 $this->mpdf->InlineProperties['INPUT'] = $this->mpdf->saveInlineProperties();
67 $properties = $this->cssManager->MergeCSS('', 'INPUT', $attr);
68 $objattr['vertical-align'] = '';
70 if (isset($properties['FONT-FAMILY'])) {
71 $this->mpdf->SetFont($properties['FONT-FAMILY'], $this->mpdf->FontStyle, 0, false);
73 if (isset($properties['FONT-SIZE'])) {
74 $mmsize = $this->sizeConverter->convert($properties['FONT-SIZE'], $this->mpdf->default_font_size / Mpdf::SCALE);
75 $this->mpdf->SetFontSize($mmsize * Mpdf::SCALE, false);
78 $objattr['color'] = $this->colorConverter->convert($properties['COLOR'], $this->mpdf->PDFAXwarnings);
80 $objattr['fontfamily'] = $this->mpdf->FontFamily;
81 $objattr['fontsize'] = $this->mpdf->FontSizePt;
82 if ($this->mpdf->useActiveForms) {
84 $objattr['text_align'] = $this->getAlign($attr['ALIGN']);
85 } elseif (isset($properties['TEXT-ALIGN'])) {
86 $objattr['text_align'] = $this->getAlign($properties['TEXT-ALIGN']);
88 if (isset($properties['BORDER-TOP-COLOR'])) {
89 $objattr['border-col'] = $this->colorConverter->convert($properties['BORDER-TOP-COLOR'], $this->mpdf->PDFAXwarnings);
91 if (isset($properties['BACKGROUND-COLOR'])) {
92 $objattr['background-col'] = $this->colorConverter->convert($properties['BACKGROUND-COLOR'], $this->mpdf->PDFAXwarnings);
98 $height = $this->mpdf->FontSize;
100 $spacesize = $this->mpdf->GetCharWidth(' ', false);
104 $w = $this->sizeConverter->convert($properties['WIDTH'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width']);
107 if ($properties['VERTICAL-ALIGN']) {
108 $objattr['vertical-align'] = $this->getAlign($properties['VERTICAL-ALIGN']);
113 $this->mpdf->ignorefollowingspaces = true; //Eliminate exceeding left-side spaces
114 if ($this->mpdf->useActiveForms) {
115 $this->form->SetFormText(0, 0, $objattr['fieldname'], $objattr['value'], $objattr['value'], '', 0, '', true);
117 if ($this->mpdf->InlineProperties[$tag]) {
118 $this->mpdf->restoreInlineProperties($this->mpdf->InlineProperties[$tag]);
120 unset($this->mpdf->InlineProperties[$tag]);
130 $width = $this->mpdf->FontSize;
131 $height = $this->mpdf->FontSize;
139 $width = $this->mpdf->FontSize;
140 $height = $this->mpdf->FontSize;
143 /* -- IMAGES-CORE -- */
150 if (isset($properties['MARGIN-TOP'])) {
151 $objattr['margin_top'] = $this->sizeConverter->convert(
152 $properties['MARGIN-TOP'],
153 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
154 $this->mpdf->FontSize,
158 if (isset($properties['MARGIN-BOTTOM'])) {
159 $objattr['margin_bottom'] = $this->sizeConverter->convert(
160 $properties['MARGIN-BOTTOM'],
161 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
162 $this->mpdf->FontSize,
166 if (isset($properties['MARGIN-LEFT'])) {
167 $objattr['margin_left'] = $this->sizeConverter->convert(
168 $properties['MARGIN-LEFT'],
169 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
170 $this->mpdf->FontSize,
174 if (isset($properties['MARGIN-RIGHT'])) {
175 $objattr['margin_right'] = $this->sizeConverter->convert(
176 $properties['MARGIN-RIGHT'],
177 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
178 $this->mpdf->FontSize,
183 if (isset($properties['BORDER-TOP'])) {
184 $objattr['border_top'] = $this->mpdf->border_details($properties['BORDER-TOP']);
186 if (isset($properties['BORDER-BOTTOM'])) {
187 $objattr['border_bottom'] = $this->mpdf->border_details($properties['BORDER-BOTTOM']);
189 if (isset($properties['BORDER-LEFT'])) {
190 $objattr['border_left'] = $this->mpdf->border_details($properties['BORDER-LEFT']);
192 if (isset($properties['BORDER-RIGHT'])) {
193 $objattr['border_right'] = $this->mpdf->border_details($properties['BORDER-RIGHT']);
201 if (isset($properties['VERTICAL-ALIGN'])) {
202 $objattr['vertical-align'] = $this->getAlign($properties['VERTICAL-ALIGN']);
208 $w = $this->sizeConverter->convert($properties['WIDTH'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width']);
211 $h = $this->sizeConverter->convert($properties['HEIGHT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width']);
218 $info = $this->imageProcessor->getImage($srcpath, true, true, $orig_srcpath);
220 $info = $this->imageProcessor->getImage($this->mpdf->noImageFile);
222 $srcpath = $this->mpdf->noImageFile;
223 $w = ($info['w'] * (25.4 / $this->mpdf->img_dpi));
224 $h = ($info['h'] * (25.4 / $this->mpdf->img_dpi));
236 /* -- IMAGES-WMF -- */
243 } else { /* -- END IMAGES-WMF -- */
250 $w = ($info['w'] / Mpdf::SCALE) * (72 / $this->mpdf->img_dpi);
251 $h = ($info['h'] / Mpdf::SCALE) * (72 / $this->mpdf->img_dpi);
254 if (isset($properties['IMAGE-RESOLUTION'])) {
255 if (preg_match('/from-image/i', $properties['IMAGE-RESOLUTION']) && isset($info['set-dpi']) && $info['set-dpi'] > 0) {
256 $w *= $this->mpdf->img_dpi / $info['set-dpi'];
257 $h *= $this->mpdf->img_dpi / $info['set-dpi'];
258 } elseif (preg_match('/(\d+)dpi/i', $properties['IMAGE-RESOLUTION'], $m)) {
261 $w *= $this->mpdf->img_dpi / $dpi;
262 $h *= $this->mpdf->img_dpi / $dpi;
275 $maxWidth = $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'];
276 $maxHeight = $this->mpdf->h - ($this->mpdf->tMargin + $this->mpdf->bMargin + 10);
277 if ($this->mpdf->fullImageHeight) {
278 $maxHeight = $this->mpdf->fullImageHeight;
281 $w = $maxWidth - $extrawidth;
285 $h = $maxHeight - $extraheight;
294 /* -- IMAGES-WMF -- */
298 /* -- END IMAGES-WMF -- */
312 if ($this->mpdf->useActiveForms) {
321 /* -- END IMAGES-CORE -- */
339 $width = $this->mpdf->GetStringWidth($texto) + ($this->form->form_element_spacing['button']['outer']['h'] * 2)
340 + ($this->form->form_element_spacing['button']['inner']['h'] * 2);
342 $height = $this->mpdf->FontSize + ($this->form->form_element_spacing['button']['outer']['v'] * 2)
343 + ($this->form->form_element_spacing['button']['inner']['v'] * 2);
345 if ($this->mpdf->useActiveForms && isset($attr['ONCLICK'])) {
361 $num_stars = mb_strlen($attr['VALUE'], $this->mpdf->mb_enc);
367 $xw = ($this->form->form_element_spacing['input']['outer']['h'] * 2) + ($this->form->form_element_spacing['input']['inner']['h'] * 2);
368 $xh = ($this->form->form_element_spacing['input']['outer']['v'] * 2) + ($this->form->form_element_spacing['input']['inner']['v'] * 2);
374 if (isset($attr['SIZE']) && ctype_digit($attr['SIZE'])) {
375 $width = ($attr['SIZE'] * $spacesize) + $xw;
377 $height = $this->mpdf->FontSize + $xh;
381 if ($this->mpdf->useActiveForms) {
406 /* -- TABLES -- */
408 if ($this->mpdf->tableLevel) {
409 $this->mpdf->_saveCellTextBuffer($e, $this->mpdf->HREF);
410 $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['s'] += $objattr['width'];
412 /* -- END TABLES -- */
413 $this->mpdf->_saveTextBuffer($e, $this->mpdf->HREF);
416 if ($this->mpdf->InlineProperties[$tag]) {
417 $this->mpdf->restoreInlineProperties($this->mpdf->InlineProperties[$tag]);
419 unset($this->mpdf->InlineProperties[$tag]);