Browse Source

Misc refactor of Context2d::SetFont()

v1.x
Tj Holowaychuk 14 years ago
parent
commit
d69e8e5bb2
  1. 3
      src/CanvasRenderingContext2d.cc

3
src/CanvasRenderingContext2d.cc

@ -951,8 +951,7 @@ Context2d::SetFont(const Arguments &args) {
String::AsciiValue style(args[1]);
double size = args[2]->NumberValue();
String::AsciiValue unit(args[3]);
String::AsciiValue _family(args[4]);
const char *family = *_family;
const char *family = *String::AsciiValue(args[4]);
Context2d *context = ObjectWrap::Unwrap<Context2d>(args.This());
cairo_t *ctx = context->getContext();

Loading…
Cancel
Save