Re: [whatwg] Need document.available_fonts() call

2010-05-11 Thread JustFillBug
On 2010-05-11, Boris Zbarsky bzbar...@mit.edu wrote:
 On 5/11/10 9:39 AM, Ashley Sheridan wrote:
 Is there really much of a need for this though?

 Good question.  What _is_ the use case here, exactly?


How about cloud computing? Gimp or CorelDraw like applications.  There
are already bitmap and vector editors in html5 using javascript. A user
should be allowed to make use of the large amount of fonts site on his
hard disk. Especially desktop publishing applications.

Legal embeding of font is not a specific problem to cloud computing.
Desktop applications had that problem since day one. So it is not like
suddenly this is a problem. Just solve it like it's always been, through
legal system.

I think that HTML5 aims more than just web browsering anymore. There
are much broader vision ahead.




[whatwg] Need document.available_fonts() call

2010-05-09 Thread JustFillBug


There should be a way to fetch available font to use in the document.
Currently, the only popular way is to use Flash calls.

document.available_fonts() or document.local_font_list() will be very
useful.






Re: [whatwg] proposed canvas 2d API additions

2009-02-28 Thread JustFillBug
On 2006-04-26, Ian Hickson i...@hixie.ch wrote:
 On Mon, 24 Apr 2006, Vladimir Vukicevic wrote:
 
  Assuming nobody has any problem with:
 
 boolean isPointInPath(in float x, in float y);
 
  ...then I'll add that to the spec when you reply to this mail.
 
 Sure, isPointInPath sounds fine.

 Added.

 We can always add isPointInStrokedPath if we ever want to bother with 
 that (which is where the ...Fill bit came from in my API, because the 
 region covered by a stroked path and that covered by a filled path are 
 different, even though testing for a hit against a filled region would 
 by far be the common case).

 We can also call the other one isPointOnPath(), if we want to keep the 
 method names reasonably short. I'm not sure we'll ever need to add it, 
 though. Getting people to click on a line is generally silly.


We do have a need of isPointOnPath() for editing Bezier lines
interactively (on a font editing interface). When people want to add a
new point on an already existing curve, we have to know if the click is
on path. besides, we need double click on the curve to pickup the whole
path and then drag on the line to move the whole path.

So I dig up a 2006 post...

Of course it's hard to get people click on a line precisely. But we can
check isPointOnPath for an 5x5 square instead to make the operation easier.

Doing point on curve in javascript is painful. And since checking
isPointInPath() already need to detect the on edge case, this shouldn't
be too much a burdern on the browser developers.

So please conside add the isPointOnPath() call to the function.