lib/Objects/FontDescriptor.php
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param \YetiForcePDF\Objects\Font $font
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'<<',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$descriptor = $this->font->getOutputInfo()['descriptor'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /FontBBox ' . $descriptor['FontBBox'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /Ascent ' . $descriptor['Ascent'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /FontName /' . $this->font->getFullName(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function render(): string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /Flags ' . $descriptor['Flags'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /MissingWidth ' . $descriptor['MissingWidth'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return $this
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function setFont(Font $font)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* {@inheritdoc}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /FontFile2 ' . $this->font->getDataStream()->getReference(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->getRawId() . ' obj',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $font;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return implode("\n", [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /ItalicAngle ' . $descriptor['ItalicAngle'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @var \YetiForcePDF\Objects\Font
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /StemV ' . $descriptor['StemV'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Set font instance.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->font = $font;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /Descent ' . $descriptor['Descent'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /Type /FontDescriptor',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
' /CapHeight ' . $descriptor['Ascent'],
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'>>',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'endobj',
- Exclude checks