Font character not working on Mac 2.4.2 and 2.5.0
Agent answer
The bug is in the cross-platform emboss text code that uses stb_truetype to look up glyphs. On macOS, WxFontUtils::create_font_file (WxFontUtils.cpp:97-104) loads the OTF file path and passes raw bytes to Emboss::create_font_file → stbtt_FindGlyphIndex. The same code runs on Linux (WxFontUtils.cpp:105-112). The failure to find "3" (U+0033) and "I" (U+0049) is a cmap parsing issue in the bundled stb_truetype, not macOS-specific. Reproducible on Linux with the same OTF font file loaded via the emboss gizmo.
Cause
stbtt_FindGlyphIndex (deps_src/imgui/imstb_truetype.h:1470) returns 0 for certain codepoints in the "Natural Coffee" OTF's cmap subtable. The Emboss.cpp:1691 filter then strips these characters, and ImGui's preview shows .notdef boxes instead.
Triage summary
stbtt_FindGlyphIndex fails to find glyphs for "3" and "I" in the "Natural Coffee" OTF font, causing them to render as boxes in the emboss text preview. The bug is in the shared stb_truetype cmap code path (Emboss.cpp:1691, imstb_truetype.h:1470), identical on all platforms.
Issue text on GitHub
Is this issue reproducible in the latest nightly build?
- [x] I have checked the latest nightly build and the issue is still reproducible
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.4.2, 2.5.0 dev
Regression compared to a previous version
No response
Operating System (OS)
macOS
OS Version
macOS 26.6.2 (25G83)
Additional system information
M4 Pro
24 GB RAM
Printer
U1
How to reproduce
https://github.com/Snapmaker/OrcaSlicer/issues/785
- Add Text
- Choose font "Natural Coffee"
- Type "3I"
- Shows a box instead of the characters 3 and capital I
Actual results
Shows a box instead of the characters 3 and capital I
Expected results
Should be the characters "3" and "I"
Project file & Debug log uploads
Embossed text - font issue - Natural Coffee 2.5.0 nightly build.3mf.zip
logs.zip
Checklist of files to include
- [x] Log file
- [x] Project file
Anything else?
- Area
- gui
- Platform
- all
- Author
- twdlup
- Comments
- 2
- Created
- 2026-08-27
Log
- vast-tw took it: reproducevast-tw · 18 min ago
- Worker restarting; back in the queuevast-tw · 18 min ago
- vast-tw took it: reproducevast-tw · 1 h ago
- Worker restarting; back in the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- vast-tw restarted; returned to the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- triage: triagedvast-tw · 1 h ago
- vast-tw took it: triagevast-tw · 1 h ago
- Collected from GitHubpanel · 3 h ago