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

Re: Request for onGlyphFailed Event

From: Jim Ley <jim@jibbering.com>
Date: Wed, 4 Jun 2003 12:16:21 -0000
To: www-svg@w3.org
Message-ID: <bbknqn$ob7$1@main.gmane.org>

"Thomas E Deweese" <thomas.deweese@kodak.com> wrote in message
>     Thinking about this an entirely different way, how about adding a
> method such as 'int canDisplayUpTo(String s, int start, int limit)'
> (This is taken from Java's Font API) to the font-face element in the
> DOM.  This allows you to find out what portion of a string a
> particular font-face can (or can't) render.

The problem with this is it leaves me checking if I can render every single
glyph before I can write it, which means I have to do it in javascript, and
makes SVG much less of a mark-up lanaguage, and more of a javascript drawing
API [*]  for example if I get a fragment of SVG, I'll first need to parse
out the text and the fonts, then test etc.

>This also keeps event generation out of the
> rendering engine (something that I think is a real must).

That is more of a problem certainly.


[*] I know I generally use it as such, but that's beside the point.
Received on Wednesday, 4 June 2003 08:17:41 UTC

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