|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71672 Patch for enabling Unicode processing in libharu
Submitted: 2016-02-26 18:14 UTC Modified: 2016-04-15 11:49 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bdmanning at ucsd dot edu Assigned: tony2001 (profile)
Status: Closed Package: haru (PECL)
PHP Version: Irrelevant OS: Linux/OS X
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bdmanning at ucsd dot edu
New email:
PHP Version: OS:


 [2016-02-26 18:14 UTC] bdmanning at ucsd dot edu

I've created the attached patch that enables processing of Unicode characters in libharu from the haru PECL extension.  I'm successfully using this patch in production to render Unicode glyphs in PDF documents.  Note, that the built-in PDF fonts for PDF files aren't Unicode-aware, they won't render certain combinations of Unicode glyphs correctly (U+00EA, ê, 0xc3aa "LATIN SMALL LETTER E WITH CIRCUMFLEX" for example).  You would need to load your own TrueType font that has all of the glyphs you expect to see in your PDF documents.  The GNU FreeFonts collection work for this, but they're huge.

Versions tested against:
libharu: from GitHub (
haru PECL: From Git, patch was generated by diffing from current HEAD (cadf22a0071c56b832c8ae2e495fbbf1cc8ada38)
PHP: 5.4.40 and 5.6.18


0001-haru.c-HPDF_UseUTFEncodings.patch (last revision 2016-02-26 18:16 UTC by bdmanning at ucsd dot edu) (last revision 2011-10-08 23:46 UTC by php-bugs-2011 at ryandesign dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-15 11:49 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: tony2001
 [2016-04-15 11:49 UTC]
Merged the patch, thanks!
I'll release a new package version soon.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 10:01:29 2024 UTC