php.net |  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
Votes:1
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
10 - 7 = ?
Subscribe to this entry?

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

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: RELEASE_2_3_0.zip from GitHub (https://github.com/libharu/libharu/releases)
haru PECL: From Git, patch was generated by diffing from current HEAD (cadf22a0071c56b832c8ae2e495fbbf1cc8ada38)
PHP: 5.4.40 and 5.6.18


Patches

0001-haru.c-HPDF_UseUTFEncodings.patch (last revision 2016-02-26 18:16 UTC by bdmanning at ucsd dot edu)
configure.in.diff (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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-15 11:49 UTC] tony2001@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tony2001
 [2016-04-15 11:49 UTC] tony2001@php.net
Merged the patch, thanks!
I'll release a new package version soon.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC