Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for 4byte characters #21

Open
vavrecan opened this issue Aug 31, 2017 · 0 comments
Open

support for 4byte characters #21

vavrecan opened this issue Aug 31, 2017 · 0 comments
Assignees

Comments

@vavrecan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants