On Sun, 2004-04-04 at 21:26, bulia byak wrote:
As for text layout proper, I see no need to rewrite it once again, with all the spacing and kerning that was added recently.
Have we tested the new spacing and kerning code with vertical text? Also, what about RTL spans, for example in Hebrew or Arabic? What about Ruby? [ actually I'm not sure offhand if Pango does Ruby or not ] I believe some Indic scripts also have special layout requirements...
Anyway, Pango has a complete layout engine that supports a lot more than we do ourselves, SVG-specific features aside.
In any case, compliant text layout is only possible if you know the document tree context (remember the example where one part of the dx/dy values for a string is taken from its parent, the other from grandparent, etc.?), and I doubt Pango is really capable of that.
We can perform dx/dy fixups (and other SVG-specific adjustments) after performing the initial layout with Pango.
Basically, this involves registering custom Pango attributes which we can use to tie sections of pango text to the appropriate SVG context. After Pango has computed a layout, we should be able to retrieve those attributes to perform SVG-related fixups.
In any case, I listed this last because it is not something really necessary to be part of the intial Pangoization, IMO. But it is something I would like to investigate in the future.
-mental