W3C home > Mailing lists > Public > www-svg@w3.org > June 1999

Re: SVG text questions

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Wed, 9 Jun 1999 23:22:30 +0100 (BST)
To: Raph Levien <raph@acm.org>
cc: SVG <www-svg@w3.org>
Message-ID: <Pine.GSO.4.04.9906092310390.13444-100000@amos.bath.ac.uk>
On Tue, 8 Jun 1999, Raph Levien wrote:

> * The spec says that SVG inherits all text properties from CSS2. Does
>   this include justification (the 'text-align' property)?

(assuming you don't mean 'inherit' in the strict sense of the word)

Basically, the answer IMHO should be no. I discuss this in detail in the
following post: 


> * Does an SVG implementation ever do line-breaking of text?



Maybe, if there is an explicit line break in the source document (?).
(I'm thinking of three things here:
 1. <html:br>
 2. { content: "\A"; }
 3. { white-space: pre; }
I don't think any of them apply though. Maybe it's time I got around to
rereading the last draft...)

> * How does one specify a precise font in any other way than by
>   downloading? In particular, how would an SVG document specify the
>   difference between Adobe Times (in Type1 format, say), and Monotype
>   Times (in TrueType format, say)?

This is deferred to CSS2's @font-face mechanism.

> * If the precise font is specified by download, and the renderer
>   implements CSS2 "intelligent matching", is the precise font to be
>   ignored in favor of the matched font?

I believe that the matched font will _be_ the precise font. See the
@font-face mechanism in CSS2.

> * Assuming that font matching takes place and that the font used in
>   rendering is subtly different than the font used in authoring, what
>   is the expected behavior? The left side aligns correctly, but the
>   right side may be incorrect (i.e. more or less the PostScript way)?

Or vice versa for rtl text, yep, presumably. Having said that, using
@font-face I believe you can get around that (synthesising the font -
again... see CSS2...).

Ian Hickson
: Is your JavaScript ready for Nav5 and IE5?
: Get the latest JavaScript client sniffer at 
: http://developer.netscape.com/docs/examples/javascript/browser_type.html
Received on Wednesday, 9 June 1999 18:22:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:46 UTC