discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

adding tolerances to font cutouts?

BB
Bruno Boettcher
Wed, Jan 4, 2023 10:32 AM

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

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.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
NH
nop head
Wed, Jan 4, 2023 10:34 AM

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

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.fr>http://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 >
BB
Bruno Boettcher
Wed, Jan 4, 2023 2:01 PM

Thanks! learned a new function :)

Ciao

Bruno Böttcher

35 rue de la république, FR-67270 Schwindratzheim
email: bboett@adlp.org, mobile:bboett@gmail.com
Mob:+33 6 76 55 82 68

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

Thanks! learned a new function :) Ciao Bruno Böttcher -- 35 rue de la république, FR-67270 Schwindratzheim email: bboett@adlp.org, mobile:bboett@gmail.com Mob:+33 6 76 55 82 68 ------------------------------------------------- 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.fr>http://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 >
BB
Bruno Boettcher
Wed, Jan 4, 2023 3:24 PM

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

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.fr>http://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.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
GS
Guenther Sohler
Wed, Jan 4, 2023 8:28 PM

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

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.fr>http://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.fr>http://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 >
BB
Bruno Boettcher
Thu, Jan 5, 2023 8:18 AM

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


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.fr>http://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.fr>http://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.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
GS
Guenther Sohler
Thu, Jan 5, 2023 8:40 AM

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


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
Null

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.fr>http://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.fr>http://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.fr>http://aikido.nohkumado.eu/, > <http://bboett.free.fr> > http://aikido.zorn.free.fr > -- Null
BB
Bruno Boettcher
Thu, Jan 5, 2023 9:58 AM

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


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
Null


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

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.fr>http://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.fr>http://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.fr>http://aikido.nohkumado.eu/, >> <http://bboett.free.fr> >> http://aikido.zorn.free.fr >> > > > -- > Null > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > -- ciao Bruno =========================================== http://nohkumado.eu/, <http://bboett.free.fr>http://aikido.nohkumado.eu/, <http://bboett.free.fr> http://aikido.zorn.free.fr
JB
Jordan Brown
Fri, Jan 6, 2023 7:28 AM

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.

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.