GNOME Bugzilla – Bug 110896
Add unshaping of presentation forms to arabic-fc.c
Last modified: 2004-12-22 21:47:04 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]
Not sure what I was think about ... I see no code to unshape presentation form areas.
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 minifribidi).
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.
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?