40 JSObject *fontObject = JS_DefineObject(context, global,
"defaultFont", NULL, NULL,
OOJS_PROP_READONLY);
53 jsval undefined = JSVAL_VOID;
CGFloat OOStringWidthInEm(NSString *text)
#define OOJS_NATIVE_ENTER(cx)
static JSBool FontMeasureString(JSContext *context, uintN argc, jsval *vp)
void InitOOJSFont(JSContext *context, JSObject *global)
#define OOJS_RETURN_DOUBLE(value)
NSString * OOStringFromJSValue(JSContext *context, jsval value)
#define OOJS_PROP_READONLY
void OOJSReportBadArguments(JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, NSString *message, NSString *expectedArgsDescription)
#define OOJS_METHOD_READONLY