After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 110896 - Add unshaping of presentation forms to arabic-fc.c
Add unshaping of presentation forms to arabic-fc.c
Product: pango
Classification: Platform
Component: general
Other Linux
: Normal minor
: future
Assigned To: pango-maint
Depends on:
Reported: 2003-04-15 20:31 UTC by Owen Taylor
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Owen Taylor 2003-04-15 20:31:09 UTC
The arabic-xft module has code to handle "unshaping" text encoded
with the presentation forms, but since the module doesn't
claim to cover the Unicode ranges for the presentation forms,
this code will never be hit.

The arabic-xft modules should probably claim to cover exactly
all the ranges that the unshape tables cover.

[Note that a consequence of this would be that if text was encoded
with presentation forms in a way that didn't match the text, or
in a way that was substituting for the lack of ZWNJ, which is
needed in some cases for Farsi, then that text might get shaped
incorrectly it was before. But on the other hand, there is
no expectation that fonts will necessarily have the presentation
form areas]
Comment 1 Owen Taylor 2003-05-27 21:08:24 UTC
Not sure what I was think about ... I see no code to
unshape presentation form areas.
Comment 2 Behdad Esfahbod 2004-12-01 09:59:56 UTC
Just wondering, should we shape to presentation forms if there's no ruleset? 
That would be useful for Type1 fonts at least.  These two can be implemented
together.   Do you accept such a patch?  (that would be part of the future
FriBidi anyway, we can include some parts in the Arabic module, other parts in
Comment 3 Owen Taylor 2004-12-13 22:03:46 UTC
I can't see much point supporting Arabic fonts without tables; as long
as we can avoid accidentally selecting them we should be OK.  (We can't
currently, but that needs to be fixed anyways.)

I'm going to WONTFIX this bug ... the rendering expectations of someone
creating such broken text isn't clear to me, so why add extra code.
Comment 4 Behdad Esfahbod 2004-12-14 01:13:24 UTC
I'm specially interested in shaping to presentation form, because there's no
other way that I know of that Type1 fonts can be used.  Am I missing anything? 
And I'm interested in Type1 points because first, I have them around, second,
they can be used to (finally) print Arabic in Gnome.  Is that correct, or
doesn't make sense since gnomeprint is not using Pango yet?