Re: proposal for text layout with positioned glyphs, anchoring and bidirectionality

Hi Cameron,

I believe that there are 2 approaches:
1. Let SVG do the layout of the text including generation of ligatures.
2. Have the authoring application do the layout and select what ligatures to

Currently, SVG has a hybrid approach that leans mostly towards step 1. Your
proposal goes towards giving the authoring application somewhat more control
but it ends up creating a syntax with many rules (as witnessed by your
example of '<text x="30 15" direction="ltr">ABCdef</text>').

For SVG 2.0, we should clear up this distinction and implement the 2
different approaches.
We can simplify the current spec and call it approach 1. David's proposal
for alignment to a common baseline would be incorporated here.

For post-layout text, we can look at what other implementations have done
(such as Flash, PDF or XPS) and introduce a new text tag.
It should be able to do things such as:
- exact positioning of a glyph
- set default word and letter spacing
- select what ligature you want to use
- attach unicode data to glyphs
but it will not:
- create ligatures automatically
- be aware of different writing directions


On Thu, May 19, 2011 at 8:31 PM, Cameron McCormack <> wrote:

> SVG text with positioned glyphs, anchoring and bidirectionality is
> greatly non-interoperable and somewhat underspecified.  We have
> discussed some aspects of this in a couple of threads on the WG mailing
> list over the last week or so:
> I want to make a proposal for defining text layout behaviour in these
> cases.  Comments and suggestions (particularly any suggested
> simplifications) are welcome.
> (Apologies for the general illegibility of the WG wiki; I figured it’s
> better for refining the proposal to have it up there than in a plain
> text email.)
> --
> Cameron McCormack ≝

Received on Friday, 3 June 2011 20:50:49 UTC