prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.72k stars 1.93k forks source link

text shape with korean font #13123

Closed mnstn closed 1 month ago

mnstn commented 3 months ago

Description of the bug

When I added text shape on a stl, there was an error about setting korean font and input korean. After I selected korean forcedly, The sliced file was good. The problem is I cannot open the 3mf file again. error_popup

Project file & How to reproduce

top_plate_20181108-61-13m4lkw.zip

  1. set english font
  2. type korean to text shape
  3. change it to korean font
  4. save 3mf file and open again prusaslicer_korean

Checklist of files included above

Version of PrusaSlicer

2.8-win64

Operating system

window11 pro

Printer model

prusa mk4

Jony01 commented 2 months ago

Thanks for report and Sorry.

You are right using this font creates 3mf in bad shape, which is unopenable for PrusaSlicer any more.

It is connected with encoding of wxFont descriptor, which I baddly expected that will contain only english character. In your case it contain some not utf8 character.

Fast fix: In file top_plate_20181108-61-13m4lkw.3mf\Metadata\Slic3r_PE_model.config attribute font_descriptor can't contain bad character image

Manualy fixed file to be able open it: top_plate_20181108-61-13m4lkw.zip

SPE-2442

Jony01 commented 2 months ago

@mnstn could you please provide us your 'korean' font file for test

Jony01 commented 2 months ago

I create fix. build for windows version to test it. [link] Plese Confirm that in this version is possible to store text written in 'korean' fonts and re-open the new created 3mf file. I am sorry, I can't add option to open of previous created 3mf. (it must be manually fixed)

lukasmatena commented 1 month ago

Fixed in 2.8.1-rc1. Closing.

lukasmatena commented 1 month ago

Fixed in 2.8.1-rc1. Closing.