That's insane ^^
Seems to depend on Cairo, which is AKAIK only available in X11 environments. Does anybody know how to get this working on OSX?
macOS has APIs to get a vector PDF snapshot from any view/window [1]. If emacs ends up drawing using platform APIs such as CoreText it should be possible to get a screenshot that way.
[1]: https://developer.apple.com/documentation/appkit/nswindow/14...
https://gist.githubusercontent.com/alphapapa/65b0b9d4b3f5534...