Variable font in processing

I have created a variable font that I want to be able to present via processing. Is there a function where I can do this in processing?

Found this forum post: Controlling CSS values with mouse in p5.js
With this type of code" font-variation-settings: "wght" 30, "cont" 250, "strk" 10;
And it looks like it’s working: https://codepen.io/andreasref/pen/bMZbjB

I Understand that p5js is a different language but my wish is to do it either in a processing sketch and upload it to a web page or just a software for my computer. I’m gonna use it in an art project.

Any Ideas?

/S