Commit graph

58 commits

Author SHA1 Message Date
Filip Sykala
eea0ce9569 Calculation of projection distances 2022-06-09 15:07:44 +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
a1d7040902 WIP: cut surface of model
update emboss icons to not be soo huge - pixel preccisse
2022-04-26 17:43:38 +02:00
Filip Sykala
630b1bb956 say user that Text can’t be empty 2022-04-07 17:06:26 +02:00
Filip Sykala
331d4d4557 Show user warning about unknown symbols by font inside of input text
Fix correct selection of collection ascent, descent, ...
Remove boost log from emboss --> not work properly on thread
2022-04-07 16:34:14 +02:00
Filip Sykala
87fc2c4298 emboss do not twice copy glyph when acess to cache 2022-03-25 09:15:41 +01:00
Filip Sykala
da15e63a46 fix link problem 2022-03-24 12:07:36 +01:00
Filip Sykala
0d77aaaa8d Fix memory leaks 2022-03-24 11:45:10 +01:00
Filip Sykala
2621d66cb0 Const improve 2022-03-21 12:50:46 +01: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
87f22765ba Separate functionality 2022-03-15 19:53:43 +01:00
Filip Sykala
3b55de7e0b change std:err to BOOST_LOG_TRIVIAL(error) 2022-03-08 09:50:43 +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
4e97830c2b Fix of commit 4c416bc747
Separate escape characters of double quotted XML attribute value
2022-03-02 08:40:27 +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
ebbdaf7336 Fix boldness to be in font points 2022-02-22 09:55:48 +01:00
Filip Sykala
5ffa19b529 Unify place of transformation 2022-02-21 16:12:38 +01:00
Filip Sykala
71d4c86a6a Fix remove debug calculation of bounding box 2022-02-16 15:16:30 +01:00
Filip Sykala
bed5232a22 Using unit per em instead of ascent 2022-02-16 14:57:57 +01:00
Filip Sykala
057abce935 update font after bold click 2022-02-02 14:07:52 +01:00
Filip Sykala
d55f09d75b add Enumerate fonts. not Finished 2022-01-21 20:19:06 +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
ef6860d4ee Move font property inside of font item to store together with font 2022-01-07 18:50:57 +01:00
Filip Sykala
a9bfef6ca6 Remove bad pracise to move const data for emboss 2022-01-06 17:44:53 +01:00
Filip Sykala
4ec4bafe19 Create Emboss::Font as unique ptr not optional
Reason: Job need pointer on font until finished
2022-01-06 16:12:15 +01:00
Filip Sykala
b1b8eee3c9 add is italic check for font file 2022-01-06 11:29:16 +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
2ead84cd1a Fix: insert forgotten ampersant 2022-01-04 14:59:48 +01:00
Filip Sykala
c9aa8b8fa5 Fix unused warning 2022-01-04 14:54:23 +01:00
Filip Sykala
5869f86d97 Initial shape for emboss is not cached any more 2022-01-04 13:21:31 +01:00
Filip Sykala
6a66436858 Fix icons.
Fix error message on uknown glyph in font
2021-12-13 16:02:55 +01:00
Filip Sykala
d698df2c31 Merge branch 'master' into fs_emboss
# Conflicts:
#	src/slic3r/GUI/GUI_App.cpp
#	tests/libslic3r/test_indexed_triangle_set.cpp
2021-12-01 14:35:42 +01:00
Filip Sykala
d2dda18753 Remove Flatness and deduce it from font size 2021-10-27 15:47:51 +02:00
Filip Sykala
706d963f7f Different font type by OS
Connect size with wxFont
2021-10-26 18:56:19 +02:00
Filip Sykala
f282d62163 Fix emboss of polygons with same point in shape. 2021-10-15 17:29:46 +02:00
Filip Sykala
ffba045734 Store font list into App configuration 2021-10-05 16:10:24 +02:00
Filip Sykala
976407fdb1 Add Slic3r:: before union_ex --> needed by linux 2021-10-04 14:57:57 +02:00
Filip Sykala
0ce004c285 Use fontDialog only when know how to get font on Operating System 2021-10-04 14:47:44 +02:00
Filip Sykala
ca79a4fac4 Fix for linux 2021-09-29 17:36:46 +02:00
Filip Sykala
cfcf0dfcd2 Fix for loading collection(.ttc) from font dialog --> HFONT 2021-09-29 17:35:58 +02:00
Filip Sykala
7a3b220f0a Clean up 2021-09-22 12:11:05 +02:00
Filip Sykala
a812f74ca3 Fix add '\t' functionality 2021-09-22 12:07:40 +02:00
Filip Sykala
b7d136d205 Fix for non windows build 2021-09-22 10:56:37 +02:00
Filip Sykala
b0ed881bd4 Add svg file loading for emboss 2021-09-20 20:29:01 +02:00
Filip Sykala
2b0408cc24 Using ExPolygons instead of polygons to represents shape of letters(text) 2021-09-17 23:07:17 +02:00
Filip Sykala
8add695de9 Add editing of text volume 2021-09-15 15:14:04 +02:00
Filip Sykala
34026a15e8 add volume modifier 2021-09-14 09:51:47 +02:00
Filip Sykala
1301234d33 separate wxFontUtils 2021-09-13 11:19:52 +02:00
Filip Sykala
20645264f8 Load font name by STBTT 2021-09-13 09:13:14 +02:00
Filip Sykala
999aef0440 remove reference initialization in header 2021-09-10 13:09:45 +02:00