Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p.text() not displaying #34

Closed
CubeOfCheese opened this issue Jun 10, 2019 · 2 comments
Closed

p.text() not displaying #34

CubeOfCheese opened this issue Jun 10, 2019 · 2 comments

Comments

@CubeOfCheese
Copy link

I have been trying everything I could think of to get the canvas to display text. I have changed the location many times and the colors. I cannot figure out why it isn't working. I can display a rectangle and ellipse, but for some reason text won't show. I will provide any more information necessary. Thank you for your help.

p.setup = function () {
p.createCanvas(window.innerWidth, window.innerHeight*.75, p.WEBGL);
p.background(100);
p.strokeWeight(1);
p.stroke(color);
p.cursor(p.CROSS);
};
p.draw = function () {
p.fill(255);
p.textSize(32);
p.text('Sample Text', 0, 0);
}

@and-who
Copy link
Contributor

and-who commented Jun 12, 2019

Hi, this should be no Issue with the wrapper.

My Console says WEBGL: only opentype fonts are supported
Here I found some Discussions regarding the Topic:
processing/p5.js#3110
processing/p5.js#3179

Perhaps this gives you some Hints of how to solve this. :)

@CubeOfCheese
Copy link
Author

Thank you very much, I was able to figure it out. Thanks for pointing me in the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants