| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function render(): string |
||
| 43 | { |
||
| 44 | $descriptor = $this->font->getOutputInfo()['descriptor']; |
||
| 45 | return implode("\n", [ |
||
| 46 | $this->getRawId() . ' obj', |
||
| 47 | '<<', |
||
| 48 | ' /Type /FontDescriptor', |
||
| 49 | ' /FontName /' . $this->font->getFullName(), |
||
| 50 | ' /FontBBox ' . $descriptor['FontBBox'], |
||
| 51 | ' /Flags ' . $descriptor['Flags'], |
||
| 52 | ' /Ascent ' . $descriptor['Ascent'], |
||
| 53 | ' /Descent ' . $descriptor['Descent'], |
||
| 54 | ' /CapHeight ' . $descriptor['Ascent'], |
||
| 55 | ' /ItalicAngle ' . $descriptor['ItalicAngle'], |
||
| 56 | ' /StemV ' . $descriptor['StemV'], |
||
| 57 | ' /MissingWidth ' . $descriptor['MissingWidth'], |
||
| 58 | ' /FontFile2 ' . $this->font->getDataStream()->getReference(), |
||
| 59 | '>>', |
||
| 60 | 'endobj', |
||
| 61 | ]); |
||
| 64 |