Even stroke weight on distorted svg

Hi!

I would like to use an imported svg in various distorted aspect ratios.
Is there a way to get an even stroke weight on the distorted versions (right), just like on the original (left)?

PShape gl;

void setup() {
  size(640, 640);
  gl = loadShape("gl.svg");
  noLoop();
} 

void draw(){
  background(255);
  gl.disableStyle();
  noFill();
  strokeWeight(10);
  shape(gl, 0, 0, 300, 300);
  shape(gl, 300, 0, 100, 600);
}

Difficult

Did you try scale instead?

It’s the same unfortunately.

void draw(){
  background(255);
  gl.disableStyle();
  gl.scale(0.5, 2);
  noFill();
  strokeWeight(10);
  shape(gl, 0, 0);
}

I see

and scale(1,1.7); directly, not as gl.scale() ?