Quarto notebook rendering cannot access font database

When i run the chunks that require the fonts they work perfectly but when i render the document

Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family
not found in Windows font database

warnings are thrown inside the rendered document.
I already use agg backend.

What happens if you run the code in your R console. Does it works ?

It could be related to the graphic device used during rendering which could be different that when using inline preview

Yea, there is no warnings and such when in R script.

Can you provide a qmd document so that I can reproduce locally ?
Thanks