Save PNG with custom fonts

Hi, All!

Can you help me with a little problem:
Im using custom fonts (import ttf files into notebook) for creating dataviz. I can see this custom fonts and I want to save result PNG. But it saving with default fonts, not what I used. How to fix it?

Im importing fonts like here:

I believe your font styles need to be part of the element that you are trying to convert.

Under the hood Observable uses html-to-image for the conversion. The library has some additional details on font handling in its readme: