MCPcopy Create free account
hub / github.com/GNOME/gjs / textPath_func

Function textPath_func

modules/cairo-context.cpp:626–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626GJS_JSAPI_RETURN_CONVENTION
627static bool textPath_func(JSContext* cx, unsigned argc, JS::Value* vp) {
628 GJS_CAIRO_CONTEXT_GET_PRIV_CR_CHECKED(cx, argc, vp, argv, obj);
629
630 JS::UniqueChars utf8;
631
632 if (!gjs_parse_call_args(cx, "textPath", argv, "s", "utf8", &utf8))
633 return false;
634
635 cairo_text_path(cr, utf8.get());
636
637 if (!gjs_cairo_check_status(cx, cairo_status(cr), "context"))
638 return false;
639
640 argv.rval().setUndefined();
641
642 return true;
643}
644
645GJS_JSAPI_RETURN_CONVENTION
646static bool selectFontFace_func(JSContext* cx, unsigned argc, JS::Value* vp) {

Callers

nothing calls this directly

Calls 3

gjs_parse_call_argsFunction · 0.85
gjs_cairo_check_statusFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected