Skip to content

support for 4byte characters #21

@vavrecan

Description

@vavrecan

OpenSansEmoji.ttf does not work properly

https://github.com/MorbZ/OpenSansEmoji/blob/master/OpenSansEmoji.ttf
I think that 4 bytes characters are not imported properly.

emoji characters e.g. 😃 are rendered as square box.

`
$pdfLibrary = new tFPDF\PDF();

$pdfLibrary->AddPage();

$pdfLibrary->AddFont('OpenSansEmoji', '', 'OpenSansEmoji.ttf', true);
$pdfLibrary->SetFont('OpenSansEmoji', '', 14);

$pdfLibrary->Write(8, "😃");

header("content-type: application/pdf");
print $pdfLibrary->output();
`

can you please help?
Thank you

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions