PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.7.3
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.7.3
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
← All changes | mpdf/utils/font_dump.php +15 -28 1.8.41.7.3 View file →
@@ -13,30 +13,30 @@
13 13
14 14
15 15 $font = 'dejavusanscondensed'; // Use internal mPDF font-name
16 16
17 -$min = 0x0020; // Minimum Unicode value to show
18 -$max = 0x2FFFF; // Maximum Unicode value to show
17 +$showmissing = true; // Show all missing unicode blocks / characters
19 18
20 -$showmissing = false; // Show all missing unicode blocks / characters
21 19
22 -
23 20 //////////////////////////////////
24 21 //////////////////////////////////
25 22 //////////////////////////////////
26 23
27 24 set_time_limit(600);
28 -ini_set("memory_limit","512M");
25 +ini_set("memory_limit","256M");
29 26
30 27 //==============================================================
31 28 //==============================================================
29 +define('_MPDF_URI', '../');
32 30 include("../mpdf.php");
33 31
34 32 $mpdf=new mPDF('');
33 +$mpdf->StartProgressBarOutput(2);
35 34
36 35 $mpdf->SetDisplayMode('fullpage');
37 36
38 37 $mpdf->useSubstitutions = true;
38 +$mpdf->debug = true;
39 39 $mpdf->simpleTables = true;
40 40 // force fonts to be embedded whole i.e. NOT susbet
41 41 $mpdf->percentSubset = 0;
42 42
@@ -79,12 +79,12 @@
79 79
80 80 include(_MPDF_TTFONTDATAPATH.$font.'.mtx.php');
81 81
82 82 if ($smp) {
83 - $max = min($max,131071);
83 + $max = 131071;
84 84 }
85 85 else {
86 - $max = min($max,65535);
86 + $max = 65535;
87 87 }
88 88
89 89
90 90 $justfinishedblank = false;
@@ -101,10 +101,10 @@
101 101 }
102 102 $lastrange = $range ;
103 103 // create HTML content
104 104 $html .= '<table cellpadding="2" cellspacing="0" style="font-family:'.$font.';text-align:center; border-collapse: collapse; ">';
105 - $html .= '<tr><td colspan="18" style="font-family:dejavusanscondensed;font-weight:bold">'.strtoupper($font).'</td></tr>';
106 - $html .= '<tr><td colspan="18" style="font-family:dejavusanscondensed;font-size:8pt;font-weight:bold">'.strtoupper($range).' (U+'.$rangestart .'-U+'.$rangeend.')</td></tr>';
105 + $html .= '<tr><td colspan="18" style="font-family:helvetica;font-weight:bold">'.strtoupper($font).'</td></tr>';
106 + $html .= '<tr><td colspan="18" style="font-family:helvetica;font-size:8pt;font-weight:bold">'.strtoupper($range).' (U+'.$rangestart .'-U+'.$rangeend.')</td></tr>';
107 107 $html .= '<tr><td></td>';
108 108
109 109 $html .= '<td></td>';
110 110 for ($i = 0; $i < 16; $i++) {
@@ -112,9 +112,9 @@
112 112 }
113 113
114 114
115 115 // print each character
116 - for ($i = $min; $i <= $max; ++$i) {
116 + for ($i = 32; $i < $max; ++$i) {
117 117 if (($i > 0) AND (($i % 16) == 0)) {
118 118 $notthisline = true;
119 119 while($notthisline) {
120 120 for ($j = 0; $j < 16; $j++) {
@@ -154,9 +154,9 @@
154 154 else if($range) {
155 155 $html .= '</tr></table><br />';
156 156 $mpdf->WriteHTML($html); $html = '';
157 157 $html .= '<table cellpadding="2" cellspacing="0" style="font-family:'.$font.';text-align:center; border-collapse: collapse; ">';
158 - $html .= '<tr><td colspan="18" style="font-family:dejavusanscondensed;font-size:8pt;font-weight:bold">'.strtoupper($range).' (U+'.$rangestart.'-U+'.$rangeend.')</td></tr>';
158 + $html .= '<tr><td colspan="18" style="font-family:helvetica;font-size:8pt;font-weight:bold">'.strtoupper($range).' (U+'.$rangestart.'-U+'.$rangeend.')</td></tr>';
159 159 $html .= '<tr><td></td>';
160 160 $html .= '<td></td>';
161 161 for ($k = 0; $k < 16; $k++) {
162 162 $html .= '<td><b>-'.sprintf('%X', $k).'</b></td>';
@@ -183,9 +183,9 @@
183 183 if ($i > 0 && ($i % 16) == 0 && ($range != $lastrange)) {
184 184 $html .= '</tr></table><br />';
185 185 $mpdf->WriteHTML($html); $html = '';
186 186 $html .= '<table cellpadding="2" cellspacing="0" style="font-family:'.$font.';text-align:center; border-collapse: collapse; ">';
187 - $html .= '<tr><td colspan="18" style="font-family:dejavusanscondensed;font-size:8pt;font-weight:bold">'.strtoupper($range).' (U+'.$rangestart.'-U+'.$rangeend.')</td></tr>';
187 + $html .= '<tr><td colspan="18" style="font-family:helvetica;font-size:8pt;font-weight:bold">'.strtoupper($range).' (U+'.$rangestart.'-U+'.$rangeend.')</td></tr>';
188 188 $html .= '<tr><td></td>';
189 189 $html .= '<td></td>';
190 190 for ($k = 0; $k < 16; $k++) {
191 191 $html .= '<td><b>-'.sprintf('%X', $k).'</b></td>';
@@ -196,16 +196,11 @@
196 196 $justfinishedblankinvalid = false;
197 197 $html .= '</tr><tr><td><i>'.(floor($i / 16)*16).'</i></td>';
198 198 $html .= '<td><b>'.sprintf('%03X', floor($i / 16)).'-</b></td>';
199 199 }
200 -
201 - // Add dotted circle to any character (mark) with width=0
202 - if ($mpdf->_charDefined($cw, $i) && _getCharWidth($cw, $i)==0) { $html .= '<td>&#x25cc;&#'.$i.';</td>'; $counter++; }
203 - else {
204 - if ($mpdf->_charDefined($cw, $i)) { $html .= '<td>&#'.$i.';</td>'; $counter++; }
205 - else if (isset($unichars[$i])) { $html .= '<td style="background-color: #FFAAAA;"></td>'; }
206 - else { $html .= '<td style="background-color: #555555;"></td>'; }
207 - }
200 + if ($mpdf->_charDefined($cw, $i)) { $html .= '<td>&#'.$i.';</td>'; $counter++; }
201 + else if (isset($unichars[$i])) { $html .= '<td style="background-color: #FFAAAA;"></td>'; }
202 + else { $html .= '<td style="background-color: #555555;"></td>'; }
208 203 }
209 204
210 205 if (($i % 16) > 0) {
211 206 for ($j = ($i % 16); $j < 16; ++$j) { $html .= '<td style="background-color: #555555;"></td>'; }
@@ -211,16 +206,8 @@
211 206 for ($j = ($i % 16); $j < 16; ++$j) { $html .= '<td style="background-color: #555555;"></td>'; }
212 207 }
213 208 $html .= '</tr></table><br />';
214 209 //==============================================================
215 -function _getCharWidth(&$cw, $u, $isdef=true) {
216 - if ($u==0) { $w = false; }
217 - else { $w = (ord($cw[$u*2]) << 8) + ord($cw[$u*2+1]); }
218 - if ($w == 65535) { return 0; }
219 - else if ($w) { return $w; }
220 - else if ($isdef) { return false; }
221 - else { return 0; }
222 -}
223 210 //==============================================================
224 211 $mpdf->WriteHTML($html); // Separate Paragraphs defined by font
225 212
226 213 $mpdf->Output();