Re: [whatwg] Image Collision Detection in Canvas

2010-04-08 Thread Stefan Haustein
and execution issues. Saurabh Jain Director SKJ Technologies Private Limited http://www.skjworld.com Author : Mobile Phone Programming using Java ME (J2ME) http://library.skjworld.com/mobile-technology/java/java-me -- Stefan Haustein Google UK Limited Registered Office: Belgrave House, 76

Re: [whatwg] canvas, img, file api and blobs

2010-02-17 Thread Stefan Haustein
On Wed, Feb 17, 2010 at 8:35 AM, Stef Epardaud s...@epardaud.fr wrote: On Tue, Feb 16, 2010 at 07:25:34PM +, Stefan Haustein wrote: We've been getting pretty good traction on Vlad's ArrayBuffers proposal, which was taken from the WebGL spec. Our current plan is to change

Re: [whatwg] canvas, img, file api and blobs

2010-02-17 Thread Stefan Haustein
On Wed, Feb 17, 2010 at 1:04 PM, Stefan Haustein haust...@google.comwrote: On Wed, Feb 17, 2010 at 8:35 AM, Stef Epardaud s...@epardaud.fr wrote: On Tue, Feb 16, 2010 at 07:25:34PM +, Stefan Haustein wrote: We've been getting pretty good traction on Vlad's ArrayBuffers proposal

Re: [whatwg] canvas, img, file api and blobs

2010-02-16 Thread Stefan Haustein
have easy ways to make a Blob out of a binary data object or a string (like StringStreams in other languages). Regards, Maciej -- Stefan Haustein Google UK Limited Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ; Registered in England Number: 3977902

Re: [whatwg] canvas, img, file api and blobs

2010-02-16 Thread Stefan Haustein
in the current array where values are written. If omitted, it is assumed to be 0. If the offset plus the length of the given array is out of range for the current WebGLArray, an exception is raised. Not sure why this was omitted in Vladimir's version... -- Stéphane Epardaud -- Stefan Haustein Google

Re: [whatwg] canvas, img, file api and blobs

2010-02-16 Thread Stefan Haustein
: Joel Webber j...@google.com Date: February 16, 2010 8:39:31 AM PST To: Stefan Haustein haust...@google.com Cc: Maciej Stachowiak m...@apple.com, wha...@whatwg.org, Jonas Sicking jo...@sicking.cc, Stef Epardaud s...@epardaud.fr Subject: Re: [whatwg] canvas, img, file api and blobs On Tue

Re: [whatwg] Opera canvas bug?

2007-05-11 Thread Stefan Haustein
Hi Ian, concerning when to apply transformations, I think it makes much sense to let the spec reflect the current reality of Safari and Firefox instead of the other way around for the following reasons: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-April/010937.html The referenced

Re: [whatwg] Web Documents off the Web (was Web Archives)

2007-04-16 Thread Stefan Haustein
and the resource folder - It would be easy to write a nice wget-like utility that creates a single file. - A zip based format is still usable for browsers that do not support it, one would just needs to unpack the file. Best regards, Stefan Haustein Tyler Keating wrote: Hi, I'm bringing

Re: [whatwg] Canvas suggestions

2007-04-16 Thread Stefan Haustein
Jordan OSETE wrote: Yes, but there are complex shapes that can be made really easier to draw this way. On the other hand, the way the current specification works allows to construct a single shape once, and draw it in different ways around, by just modifying the transform attribute... It

Re: [whatwg] Canvas suggestions

2007-04-15 Thread Stefan Haustein
, Stefan Haustein

Re: [whatwg] [WebApps] canvas transform()/setTransform()

2007-01-15 Thread Stefan Haustein
Hi, could somebody please clarify whether the unusual parameter order is intended -- or simply a bug in the specification? Best regards, Stefan 黒澤剛志(KUROSAWA, Takeshi) wrote: Dear WHATWG, Web Application 1.0 adds the transform() and the setTransform() to the canvas 2d context. The

Re: [whatwg] General request regarding feature requests -- drawString()

2006-11-19 Thread Stefan Haustein
Hi, I have updated the drawString() feature request accordingly: http://rhino-canvas.sourceforge.net/www/drawstring.html Best regards, Stefan Ian Hickson wrote: I'm happy to see the increased interest in HTML5 recently -- especially with the amazing work Lachlan, Henri, and others are doing

Re: [whatwg] Still beating the drawString() dead horse...

2006-11-14 Thread Stefan Haustein
Mathieu HENRI wrote: Stefan Haustein wrote: Hi, I have tried to sum up the requirements for CanvasRenderingContext2D.drawString() at http://rhino-canvas.sf.net/www/drawstring.html The page contains an API proposal based on the Font/TextStyle object approach that meets all those

Re: [whatwg] Still beating the drawString() dead horse...

2006-11-14 Thread Stefan Haustein
Arve Bersvendsen wrote: Let's see. CSS and an element interface provides: 1) Specified and predictable white-space handling 2) Specified and predictable font and font-size handling (fallbacks, relative and absolute sizes) 3) Specified and predictable line-height handling 4) Inline formatting

[whatwg] Still beating the drawString() dead horse...

2006-11-13 Thread Stefan Haustein
Hi, I have tried to sum up the requirements for CanvasRenderingContext2D.drawString() at http://rhino-canvas.sf.net/www/drawstring.html The page contains an API proposal based on the Font/TextStyle object approach that meets all those requirements, and also some motivation why I have

Re: [whatwg] Canvas lack of drawString method

2006-11-06 Thread Stefan Haustein
the implementor to support CSS too, at least partially. Stefan Haustein [EMAIL PROTECTED] escreveu: Hi David, I think it is very important to be able to determine the rendered size of the text. Otherwise, there is no reliable way to make sure things do not overlap. Also, some kinds of applications

Re: [whatwg] Canvas lack of drawString method (p.s.)

2006-10-25 Thread Stefan Haustein
p.s.: However, I would still prefer an API design that keeps it simple to add those methods later. ^ those = the metrics query methods, of course Deleted some text block and then it became a bit out of context

Re: [whatwg] Canvas lack of drawString method

2006-10-25 Thread Stefan Haustein
, but of course I may be overlooking something, and I am always happy to learn anything new about I18N and foreign languages (if it is a bit more specific than I belive there may be problems). Best regards, Stefan See ya On 10/25/06, *Stefan Haustein* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

Re: [whatwg] Canvas lack of drawString method

2006-10-24 Thread Stefan Haustein
would work, small-caps would work, text-shadow would work, etc. etc. fitTextToPath might be an interesting API too. dave ([EMAIL PROTECTED]) On Oct 23, 2006, at 4:07 PM, Stefan Haustein wrote: Gervase Markham wrote: Stefan Haustein wrote: I think drawElement(elem) opens up a whole new can

Re: [whatwg] Canvas lack of drawString method

2006-10-23 Thread Stefan Haustein
Gervase Markham wrote: Stefan Haustein wrote: I think drawElement(elem) opens up a whole new can of worms: - how would an application determine the size of the text box? - where is the baseline position, needed for exact axis label positioning? - there are probably issues with dynamically

Re: [whatwg] Canvas lack of drawString method

2006-10-18 Thread Stefan Haustein
to be a consistent approach (simple to remember) and all other values can be calculated by summing them up somehow (no differences needed). Best regards, Stefan Andrew Fedoniouk wrote: - Original Message - From: Stefan Haustein [EMAIL PROTECTED] Cc: WHAT Working Group Mailing List [EMAIL

Re: [whatwg] Canvas lack of drawString method

2006-10-17 Thread Stefan Haustein
); Font Canvas.getFont() // current font int Font.stringWidth(String s); int Font.getHeight(); // includes leading int Font.getBaselinePosition(); int Font.getAscent(); int Font.getDescent(); Best regards Stefan Haustein Alfonso Baqueiro wrote: Hello Charles, 2006/10/17, Charles Iliya Krempeaux

Re: [whatwg] Canvas lack of drawString method (p.s.)

2006-10-17 Thread Stefan Haustein
p.s.: To simplify coping with changing font sizes, it probably makes sense to add an align parameter (left|center|right top|center|baseline|bottom) to the drawString call... Stefan Haustein wrote: Hi, I would like to second the drawString() request. It makes sense to have a simple API

Re: [whatwg] Canvas lack of drawString method (p.s.)

2006-10-17 Thread Stefan Haustein
example image looks like single characters are placed at fixed positions out of context. Of course, this will lead to problems not only when the fonts are substituted, but also for the slight differences in font sizes... Best regards, Stefan James Graham wrote: Stefan Haustein wrote: p.s

Re: [whatwg] Canvas lack of drawString method

2006-10-17 Thread Stefan Haustein
On 10/17/06, *Stefan Haustein* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I would like to second the drawString() request. It makes sense to have a simple API, but it should be balanced with application simplicity and readability to some extent. Doing CSS black magic

Re: [whatwg] Canvas 2d methods

2006-07-02 Thread Stefan Haustein
regards, Stefan Haustein Andrew Fedoniouk wrote: - Original Message - From: Ian Hickson [EMAIL PROTECTED] To: Andrew Fedoniouk [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Benjamin Joffe [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, July 02, 2006 2:18 PM Subject: Re: [whatwg] Canvas 2d