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

PFont problem with P3D #2465

Closed
knupel opened this issue Apr 18, 2014 · 5 comments
Closed

PFont problem with P3D #2465

knupel opened this issue Apr 18, 2014 · 5 comments
Assignees
Labels

Comments

@knupel
Copy link

knupel commented Apr 18, 2014

Hello,
I try to display a font from PFont, work fine in classic mode, but display a rectangle shape in P2D, P3D and OPENGL mode
I'm on OS maverick, Imac 2012 with Processing 212

PFont font ;

void setup() {
  font = loadFont("EastBlocICGClosed-48.vlw");
  size(300,300, P3D) ;
}

void draw() {
  textFont(font, 48);
  text("hello world", 10, 50);
}

capture decran 2014-04-18 a 15 50 31
capture decran 2014-04-18 a 15 50 46

@codeanticode
Copy link
Member

as a temporary workaround until this regressions is fixed, you can use createFont() instead:

PFont font ;

void setup() {
  font = createFont("EastBlocICGClosed", 48);
  size(300,300, P3D) ;
}

void draw() {
  textFont(font, 48);
  text("hello world", 10, 50);
}

@benfry
Copy link
Contributor

benfry commented Apr 18, 2014

Never, ever load a font before size(), it will load multiple times.

size() should always be first: http://processing.org/reference/size_.html

@knupel
Copy link
Author

knupel commented Apr 18, 2014

@codeanticode thanks for the trick, but in my project is not possible to use this way so I'll continue with method loadFont, and wait the next release P213 and work always with P211.

@benfry sorry for the reverse writing, and thanks for the remember :) but the bug is always here with size() in first position.

@ronherrema
Copy link

codeanticode added a commit that referenced this issue Apr 22, 2014
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants