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

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

Closed
mrakgr opened this issue Mar 26, 2021 · 2 comments

Comments

@mrakgr
Copy link

mrakgr commented Mar 26, 2021

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

@benfry benfry transferred this issue from processing/processing Jun 15, 2021
@benfry benfry closed this as completed in bf0bbad Jun 15, 2021
@benfry
Copy link
Owner

benfry commented Jun 15, 2021

Fixed for Processing 4.0 alpha 4.

@github-actions
Copy link

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 Jul 15, 2021
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

2 participants