29 Commits

Author SHA1 Message Date
Filip Sykala - NTB T15p
191f670dbd Volume do not store angle of text any more.
(it is stored inside of volume transformation and si calculated on the fly)
2023-03-02 14:25:06 +01:00
Filip Sykala - NTB T15p
003c7fc54f Rename FontItem to EmbossStyle 2022-08-03 10:29:05 +02:00
Filip Sykala - NTB T15p
0b798267d6 Fix after merge 2022-07-20 13:41:28 +02:00
Filip Sykala
9316cd2d54 Fix serialization
add test
2022-05-11 20:48:54 +02:00
Filip Sykala
dbae2f6305 Serialization of text configuration for UndoRedo stack 2022-05-11 13:56:34 +02:00
Filip Sykala
864d1e5830 Cut surface in backend job
Store flag about use surface(into 3mf and style)
GUI: Add checkbox to start using model surface
2022-05-04 19:42:39 +02:00
Filip Sykala
447e58254d Fix 3mf trmat - wrong reload 2022-04-04 09:57:19 +02:00
Filip Sykala
f4029eaca7 Remove unneccessary constructors 2022-03-30 19:51:09 +02:00
Vojtech Bubnik
c11948a084 FontItem improvmement: Use default constructors to let the compiler
generate move constructor and move assignement.
Also used some move operators to reduce unnecessary memory allocations.

Cherry picked commit: 120a85d4c4b90ffafced442ee5e63e5f794f6945
2022-03-17 12:37:21 +01:00
Filip Sykala
6fdaee3cfe Fix data type of collection
Fix warnings
../src/libslic3r/Emboss.cpp:135:24: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare]
../src/libslic3r/Emboss.cpp:653:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:2057:12: warning: unused variable 'count_icons' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:2058:12: warning: unused variable 'count_states' [-Wunused-variable]
2022-03-07 12:16:24 +01:00
Filip Sykala
18d269506a add index of font inside of collection to FontProp(font property) + serialization/deserialization (3mf + appConfig)
separate glyph cache from FontFile
2022-02-28 18:32:50 +01:00
Filip Sykala
233ea5e0d8 Store activ font style 2022-02-21 09:00:03 +01:00
Filip Sykala
a8ef5c35d2 Undo changes for input 2022-02-18 12:33:39 +01:00
Filip Sykala
05e795bd9e Connect rotation by gizmo with angle inside of property 2022-02-11 15:15:23 +01:00
Filip Sykala
92a6067dee Try to move with volume 2022-02-09 10:08:56 +01:00
Filip Sykala
1078fe55ec Create text on second Part(volume) of object 2022-02-01 18:31:27 +01:00
Filip Sykala
4d31128837 Separate font manager to be able manage imgui font for all fonts
Separate FontListSerializable
Rename Emboss::Font to Emboss::FontFile
2022-01-13 22:00:53 +01:00
Filip Sykala
310d53c1b9 Duplicate font item GUI 2022-01-11 14:07:38 +01:00
Filip Sykala
3e0bc4a529 Only unique name of font item
Add FontListSerializable for store/load font list from AppConfig
2022-01-10 10:59:10 +01:00
Filip Sykala
ef6860d4ee Move font property inside of font item to store together with font 2022-01-07 18:50:57 +01:00
Filip Sykala
82ee1c5e4a Add boldness and skew(italic) for embossed text
Change line_gap and char_gap to optional value
2022-01-05 16:56:20 +01:00
Filip Sykala
2bf876e96c Add font family to .3mf 2021-11-04 13:47:51 +01:00
Filip Sykala
6a102cba99 Create wxFont from font property 2021-10-29 11:53:23 +02:00
Filip Sykala
d2dda18753 Remove Flatness and deduce it from font size 2021-10-27 15:47:51 +02:00
Filip Sykala
8e1fb1e139 Add font family
Fix define macros
2021-10-26 20:08:29 +02:00
Filip Sykala
706d963f7f Different font type by OS
Connect size with wxFont
2021-10-26 18:56:19 +02:00
Filip Sykala
323b12fbee Change 3mf XML store/load text - NOT back compatible 2021-10-21 15:34:41 +02:00
Filip Sykala
7f5c6b0513 Fix copy of text
Fix store/load of volume type
Fix grayed out of Menu item
Change short curt from q to t
2021-09-17 14:04:50 +02:00
Filip Sykala
8add695de9 Add editing of text volume 2021-09-15 15:14:04 +02:00