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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bdmanning at ucsd dot edu
New email:
PHP Version: OS:

 

 [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)

Pull Requests

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: Sat Dec 21 17:01:58 2024 UTC