@gws This https://docs.r-wasm.org/webr/latest/plotting.html#text-rendering-and-font-support-1 mentions being able to put fonts into /home/webr_user/fonts but that directory doesn't seem to be in there (under Node) and creating it and putting fonts there doesn't do what the last paragraph says on the tin (or I am doing something wrong). I must be missing something?
Revisiting this, it does seem to be a little fragile. Only the Cairo-based bitmap graphics devices (png, bmp, jpeg, ...) will work with this method, and the fonts need to be in place on the VFS before the device is invoked.
I wasn't able to check with Node.js from here, but I'll be back in front of my work machine on Monday and will double check then.
Add comment