diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index c8663be..7859a81 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -88,6 +88,7 @@ Context2d::Initialize(Handle target) { NODE_SET_PROTOTYPE_METHOD(t, "strokeRect", StrokeRect); NODE_SET_PROTOTYPE_METHOD(t, "clearRect", ClearRect); NODE_SET_PROTOTYPE_METHOD(t, "rect", Rect); + NODE_SET_PROTOTYPE_METHOD(t, "fillText", FillText); NODE_SET_PROTOTYPE_METHOD(t, "moveTo", MoveTo); NODE_SET_PROTOTYPE_METHOD(t, "lineTo", LineTo); NODE_SET_PROTOTYPE_METHOD(t, "bezierCurveTo", BezierCurveTo); @@ -790,6 +791,16 @@ Context2d::MoveTo(const Arguments &args) { return Undefined(); } +/* + * Fill text at x, y. + */ + +Handle +Context2d::FillText(const Arguments &args) { + + return Undefined(); +} + /* * Fill the rectangle defined by x, y, width and height. */ diff --git a/src/CanvasRenderingContext2d.h b/src/CanvasRenderingContext2d.h index ac52868..e799db3 100644 --- a/src/CanvasRenderingContext2d.h +++ b/src/CanvasRenderingContext2d.h @@ -64,6 +64,7 @@ class Context2d: public node::ObjectWrap { static Handle SetShadowRGBA(const Arguments &args); static Handle SetFillPattern(const Arguments &args); static Handle SetStrokePattern(const Arguments &args); + static Handle FillText(const Arguments &args); static Handle BezierCurveTo(const Arguments &args); static Handle QuadraticCurveTo(const Arguments &args); static Handle LineTo(const Arguments &args);