[libGD] #42 [Comment added] GD can't display characters with unicode references over 7 digits

[email protected] Tue, 23 Mar 2010 21:56:29 +0100 (CET)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#42 - GD can't display characters with unicode references over 7 digits
User who did this - Mike Kamermans (Pomax)

----------
Hmm... 

There might be a relatively simple way around that, if GD assumes TTF fonts: the UCS-2 cmap subtable is an impossible candidate for characters with code 0x10000 and up, as these are wider than 2 bytes (which is what the '2' in UCS-2 stands for). Effectively, if a character is more than 2 bytes, GD could skip straight to the UCS-4 cmap subtable instead, and resolve the character there.

I use this shortcutting in my own OTF/TTF parser, too.

(Of course, this does not work for OTF fonts with CFF content, but then I seem to recall GD doesn't actually support those)

- Pomax
----------

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=42#comment644

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.