discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Is textmetrics available on MacOS nightly build?

LM
Leonard Martin Struttmann
Wed, Apr 23, 2025 4:54 PM

I am running OpenSCAD version 2025.04.13 (git f8d680306) on MacOS Sequoia
15.4.1 on a MacBook Air M4.

I am attempting to use BOSL2 path_text()

Path_text() is complaining: ERROR: Assertion 'false' failed: "textmetrics
disabled: Must specify letter size" in file
../libraries/BOSL2/shapes3d.scad, line 4030

However, OpenSCAD Preferences show textmetrics enabled.

Clicking on the Preferences > Features > textmetrics check box (either ON
or OFF) brings up the Customizer Pane.

Actually, clicking on ANY of the Preferences > Features check boxes brings
up the Customizer.

Is this expected at this time?

Thanks!

I am running OpenSCAD version 2025.04.13 (git f8d680306) on MacOS Sequoia 15.4.1 on a MacBook Air M4. I am attempting to use BOSL2 path_text() Path_text() is complaining: ERROR: Assertion 'false' failed: "textmetrics disabled: Must specify letter size" in file ../libraries/BOSL2/shapes3d.scad, line 4030 However, OpenSCAD Preferences show textmetrics enabled. Clicking on the Preferences > Features > textmetrics check box (either ON or OFF) brings up the Customizer Pane. Actually, clicking on ANY of the Preferences > Features check boxes brings up the Customizer. Is this expected at this time? Thanks!
AM
Adrian Mariano
Wed, Apr 23, 2025 5:08 PM

Did you give textmetrics=true to path_text to enable the feature in BOSL2?

On Wed, Apr 23, 2025 at 12:54 Leonard Martin Struttmann via Discuss <
discuss@lists.openscad.org> wrote:

I am running OpenSCAD version 2025.04.13 (git f8d680306) on MacOS Sequoia
15.4.1 on a MacBook Air M4.

I am attempting to use BOSL2 path_text()

Path_text() is complaining: ERROR: Assertion 'false' failed: "textmetrics
disabled: Must specify letter size" in file
../libraries/BOSL2/shapes3d.scad, line 4030

However, OpenSCAD Preferences show textmetrics enabled.

Clicking on the Preferences > Features > textmetrics check box (either ON
or OFF) brings up the Customizer Pane.

Actually, clicking on ANY of the Preferences > Features check boxes brings
up the Customizer.

Is this expected at this time?

Thanks!


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

Did you give textmetrics=true to path_text to enable the feature in BOSL2? On Wed, Apr 23, 2025 at 12:54 Leonard Martin Struttmann via Discuss < discuss@lists.openscad.org> wrote: > I am running OpenSCAD version 2025.04.13 (git f8d680306) on MacOS Sequoia > 15.4.1 on a MacBook Air M4. > > I am attempting to use BOSL2 path_text() > > Path_text() is complaining: ERROR: Assertion 'false' failed: "textmetrics > disabled: Must specify letter size" in file > ../libraries/BOSL2/shapes3d.scad, line 4030 > > However, OpenSCAD Preferences show textmetrics enabled. > > Clicking on the Preferences > Features > textmetrics check box (either ON > or OFF) brings up the Customizer Pane. > > Actually, clicking on ANY of the Preferences > Features check boxes brings > up the Customizer. > > Is this expected at this time? > > Thanks! > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
LM
Leonard Martin Struttmann
Wed, Apr 23, 2025 5:12 PM

Yes,

#path_text(path, _text, font=_fontName, h=_letterDepth, size=_fontSize,

center=true, textmetrics=true );

On Wed, Apr 23, 2025 at 12:08 PM Adrian Mariano avm4@cornell.edu wrote:

Did you give textmetrics=true to path_text to enable the feature in BOSL2?

On Wed, Apr 23, 2025 at 12:54 Leonard Martin Struttmann via Discuss <
discuss@lists.openscad.org> wrote:

I am running OpenSCAD version 2025.04.13 (git f8d680306) on MacOS Sequoia
15.4.1 on a MacBook Air M4.

I am attempting to use BOSL2 path_text()

Path_text() is complaining: ERROR: Assertion 'false' failed: "textmetrics
disabled: Must specify letter size" in file
../libraries/BOSL2/shapes3d.scad, line 4030

However, OpenSCAD Preferences show textmetrics enabled.

Clicking on the Preferences > Features > textmetrics check box (either ON
or OFF) brings up the Customizer Pane.

Actually, clicking on ANY of the Preferences > Features check boxes
brings up the Customizer.

Is this expected at this time?

Thanks!


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

Yes, #path_text(path, _text, font=_fontName, h=_letterDepth, size=_fontSize, center=true, textmetrics=true ); On Wed, Apr 23, 2025 at 12:08 PM Adrian Mariano <avm4@cornell.edu> wrote: > Did you give textmetrics=true to path_text to enable the feature in BOSL2? > > On Wed, Apr 23, 2025 at 12:54 Leonard Martin Struttmann via Discuss < > discuss@lists.openscad.org> wrote: > >> I am running OpenSCAD version 2025.04.13 (git f8d680306) on MacOS Sequoia >> 15.4.1 on a MacBook Air M4. >> >> I am attempting to use BOSL2 path_text() >> >> Path_text() is complaining: ERROR: Assertion 'false' failed: "textmetrics >> disabled: Must specify letter size" in file >> ../libraries/BOSL2/shapes3d.scad, line 4030 >> >> However, OpenSCAD Preferences show textmetrics enabled. >> >> Clicking on the Preferences > Features > textmetrics check box (either ON >> or OFF) brings up the Customizer Pane. >> >> Actually, clicking on ANY of the Preferences > Features check boxes >> brings up the Customizer. >> >> Is this expected at this time? >> >> Thanks! >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >
MK
Marius Kintel
Wed, Apr 23, 2025 5:49 PM

On Apr 23, 2025, at 12:54, Leonard Martin Struttmann via Discuss discuss@lists.openscad.org wrote:

Clicking on the Preferences > Features > textmetrics check box (either ON or OFF) brings up the Customizer Pane.

Actually, clicking on ANY of the Preferences > Features check boxes brings up the Customizer.

Is this expected at this time?

That’s a separate issue. Will look into it.

-Marius

> On Apr 23, 2025, at 12:54, Leonard Martin Struttmann via Discuss <discuss@lists.openscad.org> wrote: > > Clicking on the Preferences > Features > textmetrics check box (either ON or OFF) brings up the Customizer Pane. > > Actually, clicking on ANY of the Preferences > Features check boxes brings up the Customizer. > > Is this expected at this time? > That’s a separate issue. Will look into it. -Marius
AM
Adrian Mariano
Wed, Apr 23, 2025 6:14 PM

Actually that error is from BOSL2, not from openscad. Very strange because
it should appear only when textmetrics is false.

From openscad you get a “warning” that the textmetrics function doesn’t
exist.

On Wed, Apr 23, 2025 at 13:50 Marius Kintel via Discuss <
discuss@lists.openscad.org> wrote:

On Apr 23, 2025, at 12:54, Leonard Martin Struttmann via Discuss <
discuss@lists.openscad.org> wrote:

Clicking on the Preferences > Features > textmetrics check box (either ON
or OFF) brings up the Customizer Pane.

Actually, clicking on ANY of the Preferences > Features check boxes brings
up the Customizer.

Is this expected at this time?

That’s a separate issue. Will look into it.

-Marius


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

Actually that error is from BOSL2, not from openscad. Very strange because it should appear only when textmetrics is false. From openscad you get a “warning” that the textmetrics function doesn’t exist. On Wed, Apr 23, 2025 at 13:50 Marius Kintel via Discuss < discuss@lists.openscad.org> wrote: > On Apr 23, 2025, at 12:54, Leonard Martin Struttmann via Discuss < > discuss@lists.openscad.org> wrote: > > Clicking on the Preferences > Features > textmetrics check box (either ON > or OFF) brings up the Customizer Pane. > > Actually, clicking on ANY of the Preferences > Features check boxes brings > up the Customizer. > > Is this expected at this time? > > That’s a separate issue. Will look into it. > > -Marius > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
LM
Leonard Martin Struttmann
Wed, Apr 23, 2025 6:46 PM

Ok, my (partial) mistake.

I got so distracted playing with the  Customizer pane popping up, that I
accidentally turned textmetrics back OFF in Preferences.  When Preferences
is on AND textmetrics=true, then path_text() does not complain.

There's still the question of the Customizer pane, though.

Thanks, everyone!

On Wed, Apr 23, 2025 at 1:15 PM Adrian Mariano via Discuss <
discuss@lists.openscad.org> wrote:

Actually that error is from BOSL2, not from openscad. Very strange because
it should appear only when textmetrics is false.

From openscad you get a “warning” that the textmetrics function doesn’t
exist.

On Wed, Apr 23, 2025 at 13:50 Marius Kintel via Discuss <
discuss@lists.openscad.org> wrote:

On Apr 23, 2025, at 12:54, Leonard Martin Struttmann via Discuss <
discuss@lists.openscad.org> wrote:

Clicking on the Preferences > Features > textmetrics check box (either ON
or OFF) brings up the Customizer Pane.

Actually, clicking on ANY of the Preferences > Features check boxes
brings up the Customizer.

Is this expected at this time?

That’s a separate issue. Will look into it.

-Marius


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, my (partial) mistake. I got so distracted playing with the Customizer pane popping up, that I accidentally turned textmetrics back OFF in Preferences. When Preferences is on AND textmetrics=true, then path_text() does not complain. There's still the question of the Customizer pane, though. Thanks, everyone! On Wed, Apr 23, 2025 at 1:15 PM Adrian Mariano via Discuss < discuss@lists.openscad.org> wrote: > Actually that error is from BOSL2, not from openscad. Very strange because > it should appear only when textmetrics is false. > > From openscad you get a “warning” that the textmetrics function doesn’t > exist. > > On Wed, Apr 23, 2025 at 13:50 Marius Kintel via Discuss < > discuss@lists.openscad.org> wrote: > >> On Apr 23, 2025, at 12:54, Leonard Martin Struttmann via Discuss < >> discuss@lists.openscad.org> wrote: >> >> Clicking on the Preferences > Features > textmetrics check box (either ON >> or OFF) brings up the Customizer Pane. >> >> Actually, clicking on ANY of the Preferences > Features check boxes >> brings up the Customizer. >> >> Is this expected at this time? >> >> That’s a separate issue. Will look into it. >> >> -Marius >> >> _______________________________________________ >> 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 >