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

12 		$tag = $this->getTagName();
13 $this->mpdf->ignorefollowingspaces = true;
23 $p['L']['font-style'] = '';
24 $p['C']['font-style'] = '';
25 $p['R']['font-style'] = '';
27 if (isset($attr['CONTENT-LEFT'])) {
28 $p['L']['content'] = $attr['CONTENT-LEFT'];
30 if (isset($attr['CONTENT-CENTER'])) {
31 $p['C']['content'] = $attr['CONTENT-CENTER'];
33 if (isset($attr['CONTENT-RIGHT'])) {
34 $p['R']['content'] = $attr['CONTENT-RIGHT'];
37 if (isset($attr['HEADER-STYLE']) || isset($attr['FOOTER-STYLE'])) { // font-family,size,weight,style,color
39 $properties = $this->cssManager->readInlineCSS($attr['HEADER-STYLE']);
41 $properties = $this->cssManager->readInlineCSS($attr['FOOTER-STYLE']);
43 if (isset($properties['FONT-FAMILY'])) {
44 $p['L']['font-family'] = $properties['FONT-FAMILY'];
45 $p['C']['font-family'] = $properties['FONT-FAMILY'];
46 $p['R']['font-family'] = $properties['FONT-FAMILY'];
48 if (isset($properties['FONT-SIZE'])) {
49 $p['L']['font-size'] = $this->sizeConverter->convert($properties['FONT-SIZE']) * Mpdf::SCALE;
50 $p['C']['font-size'] = $this->sizeConverter->convert($properties['FONT-SIZE']) * Mpdf::SCALE;
51 $p['R']['font-size'] = $this->sizeConverter->convert($properties['FONT-SIZE']) * Mpdf::SCALE;
53 if (isset($properties['FONT-WEIGHT']) && $properties['FONT-WEIGHT'] === 'bold') {
54 $p['L']['font-style'] = 'B';
55 $p['C']['font-style'] = 'B';
56 $p['R']['font-style'] = 'B';
58 if (isset($properties['FONT-STYLE']) && $properties['FONT-STYLE'] === 'italic') {
59 $p['L']['font-style'] .= 'I';
60 $p['C']['font-style'] .= 'I';
61 $p['R']['font-style'] .= 'I';
69 if (isset($attr['HEADER-STYLE-LEFT']) || isset($attr['FOOTER-STYLE-LEFT'])) {
71 $properties = $this->cssManager->readInlineCSS($attr['HEADER-STYLE-LEFT']);
73 $properties = $this->cssManager->readInlineCSS($attr['FOOTER-STYLE-LEFT']);
75 if (isset($properties['FONT-FAMILY'])) {
76 $p['L']['font-family'] = $properties['FONT-FAMILY'];
78 if (isset($properties['FONT-SIZE'])) {
79 $p['L']['font-size'] = $this->sizeConverter->convert($properties['FONT-SIZE']) * Mpdf::SCALE;
81 if (isset($properties['FONT-WEIGHT']) && $properties['FONT-WEIGHT'] === 'bold') {
82 $p['L']['font-style'] = 'B';
84 if (isset($properties['FONT-STYLE']) && $properties['FONT-STYLE'] === 'italic') {
85 $p['L']['font-style'] .='I';
91 if (isset($attr['HEADER-STYLE-CENTER']) || isset($attr['FOOTER-STYLE-CENTER'])) {
93 $properties = $this->cssManager->readInlineCSS($attr['HEADER-STYLE-CENTER']);
95 $properties = $this->cssManager->readInlineCSS($attr['FOOTER-STYLE-CENTER']);
97 if (isset($properties['FONT-FAMILY'])) {
98 $p['C']['font-family'] = $properties['FONT-FAMILY'];
100 if (isset($properties['FONT-SIZE'])) {
101 $p['C']['font-size'] = $this->sizeConverter->convert($properties['FONT-SIZE']) * Mpdf::SCALE;
103 if (isset($properties['FONT-WEIGHT']) && $properties['FONT-WEIGHT'] === 'bold') {
104 $p['C']['font-style'] = 'B';
106 if (isset($properties['FONT-STYLE']) && $properties['FONT-STYLE'] === 'italic') {
107 $p['C']['font-style'] .= 'I';
113 if (isset($attr['HEADER-STYLE-RIGHT']) || isset($attr['FOOTER-STYLE-RIGHT'])) {
115 $properties = $this->cssManager->readInlineCSS($attr['HEADER-STYLE-RIGHT']);
117 $properties = $this->cssManager->readInlineCSS($attr['FOOTER-STYLE-RIGHT']);
119 if (isset($properties['FONT-FAMILY'])) {
120 $p['R']['font-family'] = $properties['FONT-FAMILY'];
122 if (isset($properties['FONT-SIZE'])) {
123 $p['R']['font-size'] = $this->sizeConverter->convert($properties['FONT-SIZE']) * Mpdf::SCALE;
125 if (isset($properties['FONT-WEIGHT']) && $properties['FONT-WEIGHT'] === 'bold') {
126 $p['R']['font-style'] = 'B';
128 if (isset($properties['FONT-STYLE']) && $properties['FONT-STYLE'] === 'italic') {
129 $p['R']['font-style'] .= 'I';
144 $this->mpdf->DefHeaderByName($pname, $p);
146 $this->mpdf->DefFooterByName($pname, $p);