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

28 		$objattr['top-text'] = '';
29 $objattr['bottom-text'] = '';
31 $objattr['space-width'] = 120;
32 $objattr['char-width'] = 100;
34 $this->mpdf->InlineProperties['TEXTCIRCLE'] = $this->mpdf->saveInlineProperties();
35 $properties = $this->cssManager->MergeCSS('INLINE', 'TEXTCIRCLE', $attr);
41 $objattr['r'] = $this->sizeConverter->convert(
43 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
44 $this->mpdf->FontSize,
48 if (isset($attr['TOP-TEXT'])) {
49 $objattr['top-text'] = UtfString::strcode2utf($attr['TOP-TEXT']);
50 $objattr['top-text'] = $this->mpdf->lesser_entity_decode($objattr['top-text']);
51 if ($this->mpdf->onlyCoreFonts) {
52 $objattr['top-text'] = mb_convert_encoding($objattr['top-text'], $this->mpdf->mb_enc, 'UTF-8');
55 if (isset($attr['BOTTOM-TEXT'])) {
56 $objattr['bottom-text'] = UtfString::strcode2utf($attr['BOTTOM-TEXT']);
57 $objattr['bottom-text'] = $this->mpdf->lesser_entity_decode($objattr['bottom-text']);
58 if ($this->mpdf->onlyCoreFonts) {
59 $objattr['bottom-text'] = mb_convert_encoding($objattr['bottom-text'], $this->mpdf->mb_enc, 'UTF-8');
62 if (!empty($attr['SPACE-WIDTH'])) {
63 $objattr['space-width'] = $attr['SPACE-WIDTH'];
65 if (!empty($attr['CHAR-WIDTH'])) {
66 $objattr['char-width'] = $attr['CHAR-WIDTH'];
73 if (($v === 'hidden' || $v === 'printonly' || $v === 'screenonly') && $this->mpdf->visibility === 'visible') {
77 if (isset($properties['FONT-SIZE'])) {
78 if (strtolower($properties['FONT-SIZE']) === 'auto') {
79 if ($objattr['top-text'] && $objattr['bottom-text']) {
80 $objattr['fontsize'] = -2;
82 $objattr['fontsize'] = -1;
85 $mmsize = $this->sizeConverter->convert($properties['FONT-SIZE'], $this->mpdf->default_font_size / Mpdf::SCALE);
86 $this->mpdf->SetFontSize($mmsize * Mpdf::SCALE, false);
87 $objattr['fontsize'] = $this->mpdf->FontSizePt;
92 $objattr['divider'] = $this->mpdf->lesser_entity_decode($objattr['divider']);
93 if ($this->mpdf->onlyCoreFonts) {
94 $objattr['divider'] = mb_convert_encoding($objattr['divider'], $this->mpdf->mb_enc, 'UTF-8');
99 $objattr['color'] = $this->colorConverter->convert($properties['COLOR'], $this->mpdf->PDFAXwarnings);
103 if (isset($properties['FONT-WEIGHT'])) {
104 if (strtoupper($properties['FONT-WEIGHT']) === 'BOLD') {
108 if (isset($properties['FONT-STYLE'])) {
109 if (strtoupper($properties['FONT-STYLE']) === 'ITALIC') {
114 if (isset($properties['FONT-FAMILY'])) {
115 $this->mpdf->SetFont($properties['FONT-FAMILY'], $this->mpdf->FontStyle, 0, false);
117 $objattr['fontfamily'] = $this->mpdf->FontFamily;
120 if (isset($properties['MARGIN-TOP'])) {
121 $objattr['margin_top'] = $this->sizeConverter->convert(
122 $properties['MARGIN-TOP'],
123 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
124 $this->mpdf->FontSize,
128 if (isset($properties['MARGIN-BOTTOM'])) {
129 $objattr['margin_bottom'] = $this->sizeConverter->convert(
130 $properties['MARGIN-BOTTOM'],
131 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
132 $this->mpdf->FontSize,
136 if (isset($properties['MARGIN-LEFT'])) {
137 $objattr['margin_left'] = $this->sizeConverter->convert(
138 $properties['MARGIN-LEFT'],
139 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
140 $this->mpdf->FontSize,
144 if (isset($properties['MARGIN-RIGHT'])) {
145 $objattr['margin_right'] = $this->sizeConverter->convert(
146 $properties['MARGIN-RIGHT'],
147 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
148 $this->mpdf->FontSize,
153 if (isset($properties['PADDING-TOP'])) {
154 $objattr['padding_top'] = $this->sizeConverter->convert(
155 $properties['PADDING-TOP'],
156 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
157 $this->mpdf->FontSize,
161 if (isset($properties['PADDING-BOTTOM'])) {
162 $objattr['padding_bottom'] = $this->sizeConverter->convert(
163 $properties['PADDING-BOTTOM'],
164 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
165 $this->mpdf->FontSize,
169 if (isset($properties['PADDING-LEFT'])) {
170 $objattr['padding_left'] = $this->sizeConverter->convert(
171 $properties['PADDING-LEFT'],
172 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
173 $this->mpdf->FontSize,
177 if (isset($properties['PADDING-RIGHT'])) {
178 $objattr['padding_right'] = $this->sizeConverter->convert(
179 $properties['PADDING-RIGHT'],
180 $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'],
181 $this->mpdf->FontSize,
186 if (isset($properties['BORDER-TOP'])) {
187 $objattr['border_top'] = $this->mpdf->border_details($properties['BORDER-TOP']);
189 if (isset($properties['BORDER-BOTTOM'])) {
190 $objattr['border_bottom'] = $this->mpdf->border_details($properties['BORDER-BOTTOM']);
192 if (isset($properties['BORDER-LEFT'])) {
193 $objattr['border_left'] = $this->mpdf->border_details($properties['BORDER-LEFT']);
195 if (isset($properties['BORDER-RIGHT'])) {
196 $objattr['border_right'] = $this->mpdf->border_details($properties['BORDER-RIGHT']);
202 if (isset($properties['BACKGROUND-COLOR']) && $properties['BACKGROUND-COLOR'] != '') {
203 $objattr['bgcolor'] = $this->colorConverter->convert($properties['BACKGROUND-COLOR'], $this->mpdf->PDFAXwarnings);
207 if ($this->mpdf->HREF) {
208 if (strpos($this->mpdf->HREF, '.') === false && strpos($this->mpdf->HREF, '@') !== 0) {
209 $href = $this->mpdf->HREF;
210 while (array_key_exists($href, $this->mpdf->internallink)) {
213 $this->mpdf->internallink[$href] = $this->mpdf->AddLink();
214 $objattr['link'] = $this->mpdf->internallink[$href];
216 $objattr['link'] = $this->mpdf->HREF;
231 /* -- TABLES -- */
233 if ($this->mpdf->tableLevel) {
234 $this->mpdf->_saveCellTextBuffer($e, $this->mpdf->HREF);
235 $this->mpdf->cell[$this->mpdf->row][$this->mpdf->col]['s'] += $objattr['width'];
237 /* -- END TABLES -- */
238 $this->mpdf->_saveTextBuffer($e, $this->mpdf->HREF);
241 if ($this->mpdf->InlineProperties['TEXTCIRCLE']) {
242 $this->mpdf->restoreInlineProperties($this->mpdf->InlineProperties['TEXTCIRCLE']);
244 unset($this->mpdf->InlineProperties['TEXTCIRCLE']);