josephh
2
Hi @GWAK,
In the documentation page of textFont()
, they say:
If textFont() is called without any argument, it will return the current font if one has been set already.
So you can try:
console.log(textFont());
// => sans-serif
You can also look in the source code where they set the default font for the canvas drawing context:
3 Likes