Including fonts from plugin assets

Hi there,

I am trying to include some fonts from plugin assets to a plugin custom block, but I am having problems doing so.

It is pretty easy for JS files with js('/media/plugins/superwoman/superplugin/js/app.min.js'), but what is the suggested solution for other file types?

Is there any better solution (a relative path preferably) than <?= $kirby->root('plugins') . '/myplugin/assets/fonts/font.ttf' ?> to get file URL?

Ok, found it.

There is this issue

And I was trying to load the TTF file. So I changed the strategy and tried loading the WOFF2 file with asset() helper. And it works.