I want to have a p5 sketch with the same font but multiple weights. In my index.html I have the following line:
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,800&display=swap" rel="stylesheet">
In the sketch I want to use the 400 and 800 weight Montserrat font. I tried using textStyle() but that only accepts the four constants. The reference for textStyle() uses the sentence “Note: this may be is overridden by CSS styling.”
Can anyone explain what the reference means. I know how to use CSS to get text to have a different weight, but how do I use that in p5?