Project

General

Profile

Defect #895

Relative font size in MultiCell not working as expected

Added by Andre Bernemann almost 8 years ago. Updated over 7 years ago.

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

#1

Updated by Andrei Bintintan almost 8 years ago

  • Assignee set to Andrei Bintintan

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

#2

Updated by Andrei Bintintan over 7 years ago

  • Status changed from New to In Progress
#3

Updated by Andrei Bintintan over 7 years ago

  • Status changed from In Progress to Resolved
#4

Updated by Andrei Bintintan over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF