| 624 | } |
| 625 | |
| 626 | GJS_JSAPI_RETURN_CONVENTION |
| 627 | static 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 | |
| 645 | GJS_JSAPI_RETURN_CONVENTION |
| 646 | static bool selectFontFace_func(JSContext* cx, unsigned argc, JS::Value* vp) { |
nothing calls this directly
no test coverage detected