Skip to content

Fake textMode(SHAPE) is not supported by this renderer. error when displaying PShapes #202

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

Closed
processing-bot opened this issue Mar 26, 2021 · 2 comments

Comments

@processing-bot
Copy link
Collaborator

In GitLab by @mrakgr on Mar 26, 2021, 16:21

Description

Whenever I try to use shape with the SVG renderer I get an textMode(SHAPE) is not supported by this renderer. error message. I thought at first that the error meant the SVG renderer did not support PShape objects, but the output ends up being correct and the .svg file does get produced.

import processing.svg.*;

void setup() {
  size(400, 400, SVG, "filename.svg");
  //size(400, 400);
}

void draw() {
  PShape s = createShape();
  s.beginShape();
  s.fill(255,0,0);
  s.vertex(0,0);
  s.vertex(50,0);
  s.vertex(50,50);
  s.endShape(CLOSE);
  shape(s);

  // Exit the program
  println("Finished.");
  exit();
}

Expected Behavior

Finished.

Current Behavior

textMode(SHAPE) is not supported by this renderer.
Finished.

Steps to Reproduce

Run the code.

Your Environment

  • Processing version: 3.5.4
  • Operating System and OS version: Win 10
  • Other information:

Possible Causes / Solutions

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Fixed for Processing 4.0 alpha 4.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

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

No branches or pull requests

1 participant