Project

General

Profile

Defect #895

Relative font size in MultiCell not working as expected

Added by Andre Bernemann about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
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é

History

#1 Updated by Andrei Bintintan about 1 year ago

  • Assignee set to Andrei Bintintan

Thanks for the hint. I'll put this in the next release.

#2 Updated by Andrei Bintintan about 1 year ago

  • Status changed from New to In Progress

#3 Updated by Andrei Bintintan about 1 year ago

  • Status changed from In Progress to Resolved

#4 Updated by Andrei Bintintan about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF