Defect #895
Relative font size in MultiCell not working as expected
Start date:
07/19/2016
Due date:
% Done:
0%
Estimated time:
Description
Hi,
relative font size settings are not handled correctly. If you are using something like
@$obj->setStyle($tag, $famliy, $style, $size, $color)@ with @$size@ set to @'70%'@ for example,
the output font size is not scaled correctly (wrong reference). To fix this, I'd like to suggest a change in Multicell.php (Line 374):
Before:
@style[ 'size' ] = $this->oPdf->FontSize * ( ( (float)$style[ 'size' ] ) / 100 );@
After:
@$style[ 'size' ] = $this->oPdf->FontSizePt * ( ( (float)$style[ 'size' ] ) / 100 );@
Regards,
André
Updated by Andrei Bintintan about 7 years ago
- Assignee set to Andrei Bintintan
Thanks for the hint. I'll put this in the next release.