René's URL Explorer Experiment


Title: PS3 Lua plugin API: api.emboss_text() ignores the depth option and always produces a 1mm-deep mesh · Issue #15793 · prusa3d/PrusaSlicer · GitHub

Open Graph Title: PS3 Lua plugin API: api.emboss_text() ignores the depth option and always produces a 1mm-deep mesh · Issue #15793 · prusa3d/PrusaSlicer

X Title: PS3 Lua plugin API: api.emboss_text() ignores the depth option and always produces a 1mm-deep mesh · Issue #15793 · prusa3d/PrusaSlicer

Description: Description of the bug api.emboss_text() ignores any depth value passed in its options table. The emboss or deboss depth is always 1.0mm. EmbossTextOpts declares double depth{1.0} (ProjectApi.cpp:520-526). parse_emboss_text_opts() reads ...

Open Graph Description: Description of the bug api.emboss_text() ignores any depth value passed in its options table. The emboss or deboss depth is always 1.0mm. EmbossTextOpts declares double depth{1.0} (ProjectApi.cpp:5...

X Description: Description of the bug api.emboss_text() ignores any depth value passed in its options table. The emboss or deboss depth is always 1.0mm. EmbossTextOpts declares double depth{1.0} (ProjectApi.cpp:5...

Opengraph URL: https://github.com/prusa3d/PrusaSlicer/issues/15793

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PS3 Lua plugin API: api.emboss_text() ignores the depth option and always produces a 1mm-deep mesh","articleBody":"### Description of the bug\n\n`api.emboss_text()` ignores any `depth` value passed in its options table. The emboss or deboss depth is always 1.0mm.\n\n`EmbossTextOpts` declares `double depth{1.0}` ([`ProjectApi.cpp:520-526`](https://github.com/prusa3d/PrusaSlicer/blob/version_3.0.0-alpha11/src/slic3r-shared/src/Slic3r/App/Lua/ProjectApi.cpp#L520-L526)). `parse_emboss_text_opts()` reads only `font`, `text`, `line_height`, and `per_glyph` from the Lua table ([`ProjectApi.cpp:536-547`](https://github.com/prusa3d/PrusaSlicer/blob/version_3.0.0-alpha11/src/slic3r-shared/src/Slic3r/App/Lua/ProjectApi.cpp#L536-L547)); it never reads `depth`. The struct's default therefore reaches `emboss_text()` unchanged regardless of what the caller passes.\n\n`api.emboss_svg(path, depth)` shows this is a real bug, not a documented limitation: its `depth` parameter is read directly and applied ([`ProjectApi.cpp:496-500`](https://github.com/prusa3d/PrusaSlicer/blob/version_3.0.0-alpha11/src/slic3r-shared/src/Slic3r/App/Lua/ProjectApi.cpp#L496-L500)). `emboss_text()` accepts the same key in its options table; it simply never forwards it to `EmbossTextOpts`.\n\n### Zipped project file & How to reproduce\n\nNo project file is needed; the bug does not depend on any model or 3mf. Steps:\n\n1. Install a Lua plugin with this `execute()`:\n   ```lua\n   function execute(opts)\n       local mesh = api.emboss_text{font = api.get_default_font(), text = \"X\", depth = 5}\n       local bb = mesh:bounds()\n       print(\"requested depth 5, got depth \" .. (bb.max_z - bb.min_z))\n   end\n   ```\n2. Launch PrusaSlicer from a terminal so `print()` output is visible.\n3. Run the plugin from the Plugins menu.\n\n**Expected:** `requested depth 5, got depth 5`\n**Actual:** `requested depth 5, got depth 1`\n\n### Suggested fix\n\nAdd a line to `parse_emboss_text_opts()` reading `depth` from the options table, matching the existing `line_height`/`per_glyph` pattern:\n```cpp\n.depth = def.get_or(\"depth\", 1.0),\n```\n\n### Version of PrusaSlicer\n\n3.0.0-alpha11\n\n### Operating system\n\nmacOS\n\n### Operating system version\n\n26.6.2\n\n### Printer model\n\nPrusa Signature Oak\n","author":{"url":"https://github.com/mjonuschat","@type":"Person","name":"mjonuschat"},"datePublished":"2026-09-07T20:54:56Z","url":"https://github.com/prusa3d/PrusaSlicer/issues/15793"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:539c669a-c36f-38ae-33f6-56f053d8ab65
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB72C:1268E7:21854:2C538:6AEBC2A1
html-safe-nonce2b904971bd5fee1432f172ceff518ca0fca95034e2ea44f5f7158cfdd8c5cb9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzJDOjEyNjhFNzoyMTg1NDoyQzUzODo2QUVCQzJBMSIsInZpc2l0b3JfaWQiOiI3MTIxMjE4NzUxMDk1ODgyNDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac713c2890459c83e163e93ac2de08d8d4050b47a2874cf5c562f85a188aaac8be
hovercard-subject-tagissue:5378941312
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prusa3d/PrusaSlicer/15793/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0704cfaee98cadb9feb0fd92f0273724d81956b8a8328cb4b6905d3282580b34/prusa3d/PrusaSlicer/issues/15793
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0704cfaee98cadb9feb0fd92f0273724d81956b8a8328cb4b6905d3282580b34/prusa3d/PrusaSlicer/issues/15793
og:image:altDescription of the bug api.emboss_text() ignores any depth value passed in its options table. The emboss or deboss depth is always 1.0mm. EmbossTextOpts declares double depth{1.0} (ProjectApi.cpp:5...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemjonuschat
hostnamegithub.com
expected-hostnamegithub.com
None4c39b5a5177867789999269ddf5ae2221b00c4ac9fe1487d3a72e97b69db173e
turbo-cache-controlno-preview
go-importgithub.com/prusa3d/PrusaSlicer git https://github.com/prusa3d/PrusaSlicer.git
octolytics-dimension-user_id14859759
octolytics-dimension-user_loginprusa3d
octolytics-dimension-repository_id52882701
octolytics-dimension-repository_nwoprusa3d/PrusaSlicer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id52882701
octolytics-dimension-repository_network_root_nwoprusa3d/PrusaSlicer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec520692f02ba50d045716bcd724a71f0fc5f7d96
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/prusa3d/PrusaSlicer/issues/15793#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprusa3d%2FPrusaSlicer%2Fissues%2F15793
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprusa3d%2FPrusaSlicer%2Fissues%2F15793
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=prusa3d%2FPrusaSlicer
Reloadhttps://github.com/prusa3d/PrusaSlicer/issues/15793
Reloadhttps://github.com/prusa3d/PrusaSlicer/issues/15793
Reloadhttps://github.com/prusa3d/PrusaSlicer/issues/15793
prusa3dhttps://github.com/prusa3d
PrusaSlicerhttps://github.com/prusa3d/PrusaSlicer
Codehttps://github.com/prusa3d/PrusaSlicer
Issues626 (626)https://github.com/prusa3d/PrusaSlicer/issues
Pull requests306 (306)https://github.com/prusa3d/PrusaSlicer/pulls
Discussionshttps://github.com/prusa3d/PrusaSlicer/discussions
Projectshttps://github.com/prusa3d/PrusaSlicer/projects
Wikihttps://github.com/prusa3d/PrusaSlicer/wiki
Security and qualityhttps://github.com/prusa3d/PrusaSlicer/security
Insightshttps://github.com/prusa3d/PrusaSlicer/pulse
https://github.com/prusa3d/PrusaSlicer
New issuehttps://github.com/login?return_to=https://github.com/prusa3d/PrusaSlicer/issues/15793
New issuehttps://github.com/login?return_to=https://github.com/prusa3d/PrusaSlicer/issues/15793
PS3 Lua plugin API: api.emboss_text() ignores the depth option and always produces a 1mm-deep meshhttps://github.com/prusa3d/PrusaSlicer/issues/15793#top
https://github.com/barzto
Fixed in the next releaseWe will close this issue when the next release is merged into master.https://github.com/prusa3d/PrusaSlicer/issues?q=state%3Aopen%20label%3A%22Fixed%20in%20the%20next%20release%22
PluginsLua pluginshttps://github.com/prusa3d/PrusaSlicer/issues?q=state%3Aopen%20label%3A%22Plugins%22
https://github.com/mjonuschat
mjonuschathttps://github.com/mjonuschat
on Sep 7, 2026https://github.com/prusa3d/PrusaSlicer/issues/15793#issue-5378941312
ProjectApi.cpp:520-526https://github.com/prusa3d/PrusaSlicer/blob/version_3.0.0-alpha11/src/slic3r-shared/src/Slic3r/App/Lua/ProjectApi.cpp#L520-L526
ProjectApi.cpp:536-547https://github.com/prusa3d/PrusaSlicer/blob/version_3.0.0-alpha11/src/slic3r-shared/src/Slic3r/App/Lua/ProjectApi.cpp#L536-L547
ProjectApi.cpp:496-500https://github.com/prusa3d/PrusaSlicer/blob/version_3.0.0-alpha11/src/slic3r-shared/src/Slic3r/App/Lua/ProjectApi.cpp#L496-L500
Jan-Soustruznikhttps://github.com/Jan-Soustruznik
barztohttps://github.com/barzto
on Sep 8, 2026https://github.com/prusa3d/PrusaSlicer/issues/15793#event-30749445029
Jan-Soustruznikhttps://github.com/Jan-Soustruznik
Fixed in the next releaseWe will close this issue when the next release is merged into master.https://github.com/prusa3d/PrusaSlicer/issues?q=state%3Aopen%20label%3A%22Fixed%20in%20the%20next%20release%22
PluginsLua pluginshttps://github.com/prusa3d/PrusaSlicer/issues?q=state%3Aopen%20label%3A%22Plugins%22
on Sep 21, 2026https://github.com/prusa3d/PrusaSlicer/issues/15793#event-31522199534
lukasmatenahttps://github.com/lukasmatena
on Sep 21, 2026https://github.com/prusa3d/PrusaSlicer/issues/15793#event-31535697600
SPE-4103 (#15793): emboss_text fixed passing depth and missing font a…https://github.com/prusa3d/PrusaSlicer/commit/bd90d974911400416702b33bfc03850c3a5411d9
#15793https://github.com/prusa3d/PrusaSlicer/issues/15793
bd90d97https://github.com/prusa3d/PrusaSlicer/commit/bd90d974911400416702b33bfc03850c3a5411d9
https://github.com/lukasmatena
lukasmatenahttps://github.com/lukasmatena
on Sep 21, 2026https://github.com/prusa3d/PrusaSlicer/issues/15793#issuecomment-5762674349
PrusaSlicer 3.0.0-alpha12https://github.com/prusa3d/PrusaSlicer/releases/tag/version_3.0.0-alpha12
lukasmatenahttps://github.com/lukasmatena
completedhttps://github.com/prusa3d/PrusaSlicer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 21, 2026https://github.com/prusa3d/PrusaSlicer/issues/15793#event-31537795770
Sign up for freehttps://github.com/signup?return_to=https://github.com/prusa3d/PrusaSlicer/issues/15793
Sign in to commenthttps://github.com/login?return_to=https://github.com/prusa3d/PrusaSlicer/issues/15793
barztohttps://github.com/barzto
Fixed in the next releaseWe will close this issue when the next release is merged into master.https://github.com/prusa3d/PrusaSlicer/issues?q=state%3Aopen%20label%3A%22Fixed%20in%20the%20next%20release%22
PluginsLua pluginshttps://github.com/prusa3d/PrusaSlicer/issues?q=state%3Aopen%20label%3A%22Plugins%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.