Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and the
filament has some oozing and other inprecisions, i need to add some space
around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and the
filament has some oozing and other inprecisions, i need to add some space
around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Thanks! learned a new function :)
Ciao
Dev: Java/Perl/PHP OS:GNU/LINUX, Android
nop head nop.head@gmail.com schrieb am Mi., 4. Jan. 2023, 11:35:
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and the
filament has some oozing and other inprecisions, i need to add some space
around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
ok! this time i nearly got it....
only the texmetrics function i found in the wikibooks is somehow missing
and causing problems with the accentuated letter, where did it go? or how
to circumvent this?
Am Mi., 4. Jan. 2023 um 11:35 Uhr schrieb nop head nop.head@gmail.com:
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and the
filament has some oozing and other inprecisions, i need to add some space
around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
Looking into the code, it appears, that the
textmetrics function is still there:
[image: image.png]
did you spell it correctly?
On Wed, Jan 4, 2023 at 4:25 PM Bruno Boettcher bboett@gmail.com wrote:
ok! this time i nearly got it....
only the texmetrics function i found in the wikibooks is somehow missing
and causing problems with the accentuated letter, where did it go? or how
to circumvent this?
Am Mi., 4. Jan. 2023 um 11:35 Uhr schrieb nop head nop.head@gmail.com:
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and the
filament has some oozing and other inprecisions, i need to add some space
around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
hello!
i spelled it exactly as in the your excerpt but it produces the following
error
WARNING: Experimental builtin function 'textmetrics' is not enabled in file
conduite_accompagnee.scad, line 33
<33,/home/bboett/3dmodel/badge/conduite_accompagnee.scad>
WARNING: Ignoring unknown function 'textmetrics' in file
conduite_accompagnee.scad, line 33
<33,/home/bboett/3dmodel/badge/conduite_accompagnee.scad>
in the meantime i got the shape of my drawing right playing with the valign
argument, but still, that function could come in handy, and as it is
documented, i don't get it why i can't access it....
ciao
Bruno
Am Mi., 4. Jan. 2023 um 21:28 Uhr schrieb Guenther Sohler <
guenther.sohler@gmail.com>:
Looking into the code, it appears, that the
textmetrics function is still there:
[image: image.png]
did you spell it correctly?
On Wed, Jan 4, 2023 at 4:25 PM Bruno Boettcher bboett@gmail.com wrote:
ok! this time i nearly got it....
only the texmetrics function i found in the wikibooks is somehow missing
and causing problems with the accentuated letter, where did it go? or how
to circumvent this?
Am Mi., 4. Jan. 2023 um 11:35 Uhr schrieb nop head nop.head@gmail.com:
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and
the filament has some oozing and other inprecisions, i need to add some
space around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am
stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
Hi Bruno.
You can enable the Experimental functions somewhere in the Options with a
checkbox. Hope IT helps.
On Thursday, January 5, 2023, Bruno Boettcher bboett@gmail.com wrote:
hello!
i spelled it exactly as in the your excerpt but it produces the following
error
WARNING: Experimental builtin function 'textmetrics' is not enabled in
file conduite_accompagnee.scad, line 33
http://33,/home/bboett/3dmodel/badge/conduite_accompagnee.scad
WARNING: Ignoring unknown function 'textmetrics' in file
conduite_accompagnee.scad, line 33
http://33,/home/bboett/3dmodel/badge/conduite_accompagnee.scad
in the meantime i got the shape of my drawing right playing with the
valign argument, but still, that function could come in handy, and as it is
documented, i don't get it why i can't access it....
ciao
Bruno
Am Mi., 4. Jan. 2023 um 21:28 Uhr schrieb Guenther Sohler <
guenther.sohler@gmail.com>:
Looking into the code, it appears, that the
textmetrics function is still there:
[image: image.png]
did you spell it correctly?
On Wed, Jan 4, 2023 at 4:25 PM Bruno Boettcher bboett@gmail.com wrote:
ok! this time i nearly got it....
only the texmetrics function i found in the wikibooks is somehow missing
and causing problems with the accentuated letter, where did it go? or how
to circumvent this?
Am Mi., 4. Jan. 2023 um 11:35 Uhr schrieb nop head nop.head@gmail.com:
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and
the filament has some oozing and other inprecisions, i need to add some
space around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am
stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1]) text(mytext,halign="center",
valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",
valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
--
Null
Hello Guenther!
found it, thanks!
ciao
Bruno
Am Do., 5. Jan. 2023 um 09:40 Uhr schrieb Guenther Sohler <
guenther.sohler@gmail.com>:
Hi Bruno.
You can enable the Experimental functions somewhere in the Options with a
checkbox. Hope IT helps.
On Thursday, January 5, 2023, Bruno Boettcher bboett@gmail.com wrote:
hello!
i spelled it exactly as in the your excerpt but it produces the following
error
WARNING: Experimental builtin function 'textmetrics' is not enabled in
file conduite_accompagnee.scad, line 33
http://33,/home/bboett/3dmodel/badge/conduite_accompagnee.scad
WARNING: Ignoring unknown function 'textmetrics' in file
conduite_accompagnee.scad, line 33
http://33,/home/bboett/3dmodel/badge/conduite_accompagnee.scad
in the meantime i got the shape of my drawing right playing with the
valign argument, but still, that function could come in handy, and as it is
documented, i don't get it why i can't access it....
ciao
Bruno
Am Mi., 4. Jan. 2023 um 21:28 Uhr schrieb Guenther Sohler <
guenther.sohler@gmail.com>:
Looking into the code, it appears, that the
textmetrics function is still there:
[image: image.png]
did you spell it correctly?
On Wed, Jan 4, 2023 at 4:25 PM Bruno Boettcher bboett@gmail.com wrote:
ok! this time i nearly got it....
only the texmetrics function i found in the wikibooks is somehow
missing and causing problems with the accentuated letter, where did it go?
or how to circumvent this?
Am Mi., 4. Jan. 2023 um 11:35 Uhr schrieb nop head <nop.head@gmail.com
:
offset() should work.
On Wed, 4 Jan 2023 at 10:34, Bruno Boettcher bboett@gmail.com wrote:
Hello!
and happy new year!
i try to do a piece with writings in 2 pieces, since the printer and
the filament has some oozing and other inprecisions, i need to add some
space around the cutout so that the embossed part can fit in....
works with the other parts of that thing, but for the font i am
stuck....
mytext = "M";
textsize=20;
myfont="Arial";
tol = 1;
tm = textmetrics(text=mytext, size=textsize, valign="center",
halign="center", font=myfont);
echo("metrics :",tm); //well well wikibooks and openscad
2022.11.18.ai12806 aren't on the same page?
color("black")
translate([0,0,-1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
difference()
{
cube([40,40,.8], center = true);
scale([1+tol/textsize,1+tol/textsize,1])
text(mytext,halign="center",valign="center",font=myfont,size=textsize);
}
anyone has a solution to add fitting space around letters, as simply
scaling doesn't work?
thanks in advance
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
--
ciao
Bruno
---==========
http://nohkumado.eu/, http://bboett.free.frhttp://aikido.nohkumado.eu/,
http://bboett.free.fr
http://aikido.zorn.free.fr
I believe that the textmetrics() documentation is all in the "Work in
Progress" section of the documentation. Note that it says that those
features are experimental, may not even be in development snapshots, et
cetera.