Project

General

Profile

Task #1986

Multicell style inheritance

Added by Andrei Bintintan almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
04/24/2022
Due date:
% Done:

0%

Estimated time:

Description

In a text pattern like this:

<strong><u>Text</u></strong>

$multicell->setStyle('strong', 11, '', [0, 0, 77], 'helvetica');
$multicell->setStyle('u', null, 'U');

The u should inherit all styles from strong except to what is extra "overwritten".

Eg:

<p><red>Red Text </red><yellow><u>Yellow Underline</u><yellow></p>
$multicell->setStyle('p', 11, '', [0, 0, 77], 'helvetica');
$multicell->setStyle('u', null, 'U');
$multicell->setStyle('red', null, null, [255,0,0]);
$multicell->setStyle('yellow', null, null , [255,255,0]);
#1

Updated by Andrei Bintintan almost 2 years ago

  • Subject changed from Multicell to Multicell style inheritance

Also available in: Atom PDF