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...