I'm writing from an Ubuntu (22.04 LTS) box and I'm trying to isolate an example about the exporting to SVG files using the Cairo SVG exporter: The problem that I've found is that the latest master branch yields a wrong exporting. The following steps can be used to reproduce my problem:
Get a fresh image and the vm with curl https://get.pharo.org/64/110+vm | bash;
then open it with ./pharo-ui, open a Playground and evaluate the following code:
Metacello new
baseline: 'Roassal3Exporters';
repository: 'github://ObjectProfile/Roassal3Exporters';
load.
pango := (RSLabel new
text: 'hello world';
yourself) .
another := (RSLabel new
size: 14;
text: 'Mickey Mouse';
yourself).
RSLocation new above move: pango on: another.
c := RSComposite new
shapes: (RSGroup new
add: pango;
add: another;
yourself);
"translateTo: 100 asPoint;"yourself.
canvas := RSCanvas new.
canvas add: c.
canvas svgCairoExporter zoomToShapes ;export.
that should produce a good SVG image
with the two small labels.
evaluate then the following chunk that loads the latest master branch:
[Metacello new
baseline: 'Roassal3';
repository: 'github://ObjectProfile/Roassal3';
load: 'Full' ] on: MCMergeOrLoadWarning do: [:warning | warning load ].
then re-evaluate the chunks:
pango := (RSLabel new
text: 'hello world';
yourself) .
another := (RSLabel new
size: 14;
text: 'Michey Mouse';
yourself).
RSLocation new above move: pango on: another.
c := RSComposite new
shapes: (RSGroup new
add: pango;
add: another;
yourself);
"translateTo: 100 asPoint;"yourself.
canvas := RSCanvas new.
canvas add: c.
canvas svgCairoExporter zoomToShapes ;export.
I'm writing from an Ubuntu (22.04 LTS) box and I'm trying to isolate an example about the exporting to SVG files using the Cairo SVG exporter: The problem that I've found is that the latest
master
branch yields a wrong exporting. The following steps can be used to reproduce my problem:curl https://get.pharo.org/64/110+vm | bash
;then open it with
./pharo-ui
, open aPlayground
and evaluate the following code:that should produce a good SVG image
with the two small labels.
master
branch:then re-evaluate the chunks:
which produces a wrong image on my machine