Skip to content

Problem when changing font size #2

@19Gerhard85

Description

@19Gerhard85

Hello,

I tried to upgrade TCPDF from 5.9.179 to 6.0.091 and everything worked fine except in situations where the function SetFont is called.

In some cases, when changing only the font size and / or the style (bold or not), the text did not get displayed.

Short example

$font = 'courier';

$this->SetFont($font, '', 10, '', false);
$this->SetTextColorArray(array(0, 0, 0));
$this->MultiCell(120, 5, 'Test 1', 0, 'L', false, 1, null, null, false, 0, false, true, 5, 'M', true);

$this->SetFont($font, '', 10, '', false);
$this->SetTextColorArray(array(0, 0, 0));
$this->MultiCell(120, 5, 'Test 1', 0, 'L', false, 1, null, null, false, 0, false, true, 5, 'M', true);

The string is only displayed once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions