Commit Graph

36 Commits

Author SHA1 Message Date
xtemp09
c8f678087f Fix the typo in #9267 2023-04-15 15:41:33 +07:00
xtemp09
93bdd9dc78 Fix memory leak when loading a font file
- FreeCAD allocated memory to load a font file, but did not deallocate.
std::unique_ptr fixed it.
- Removed unnecessary includes
2023-04-15 01:42:19 +07:00
wandererfan
7fa7cb7f0b [Part]handle unicode filename on win 2023-03-29 15:04:57 -04:00
wandererfan
c318bc08cb [Part][Draft]fix #8271 temporary files on windows 2023-01-28 07:13:05 -08:00
jim
f79055c1e5 fix whitespace and add comments 2022-10-17 11:15:09 -04:00
jim
d4e368a1d1 increase the height FreeType uses to draw glyphs in order to preserve precision of very fine features when converted to FC wires. scale the result back down appropriately. 2022-10-17 11:15:09 -04:00
marioalexis
34f070cf9b Part: Replace C cast 2022-09-18 11:06:51 -05:00
wmayer
c6a208bb18 Part: modernize C++: replace 'typedef' with 'using' 2022-08-29 19:31:50 +02:00
berniev
2d4c5a4cfb Mod: use emplace_back 2022-08-05 10:36:16 +02:00
Uwe
27a69f89c3 [Part] E*: remove unneeded includes
- also sort includes
2022-07-04 10:59:16 +02:00
wmayer
aec9d5f07a Py: fix memory leaks by incorrect use of PyList_Append 2020-12-13 16:30:04 +01:00
luz paz
7c43b059df Part: fix header uniformity + trailing whitespace
[skip ci]
2020-12-10 11:56:55 +01:00
wandererfan
4a3bd23877 [Part]use BSpline for makeWireString instead of Bezier curves.
- the bezier curves from the font definitions cause checkGeometry
  errors when extruded.  bsplines do not have this problem.
2020-05-31 11:26:22 -04:00
wandererfan
e3b5b0b177 [Part]Handle CJK font names for ShapeString 2020-02-19 13:11:01 -05:00
luz.paz
53bb216b57 Part: [skip ci] fix header uniformity
This PR fixes header uniformity across all Part WB files
2019-12-22 00:59:47 +01:00
Abdullah Tahiri
a56658489b Part: Make 3rd party libraries into PCH 2019-05-02 07:09:22 +02:00
wmayer
0ed5b77917 activate pCH on Part module 2019-04-28 15:33:25 +02:00
WandererFan
674aabe80d fix #3094 ShapeString tracking 2017-06-24 21:12:54 -04:00
Peter Lama
a75a98ef27 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
wmayer
f53a691bba + Prefer prefix ++/-- operators for non-primitive types 2015-10-06 21:16:44 +02:00
wmayer
8ec1bab139 + fixes #0002229: some ttf fonts make Draft.makeShapeString crash 2015-08-26 22:56:37 +02:00
wmayer
0467777d1b + remove unneeded semicolons 2014-05-08 17:32:23 +02:00
wmayer
3b5cdda879 + fix flaws found with code analyzer tool 2014-05-07 13:09:44 +02:00
WandererFan
13cdc443fa Improve geom creation, scaling and translation 2014-03-18 07:57:44 +01:00
WandererFan
b3d1b7a2ea 1443: Fix ShapeString user font selection on Windows 2014-02-27 15:18:18 +01:00
wmayer
32117fb980 Prepare Windows build to use FreeType 2013-06-11 17:28:21 +02:00
wmayer
c70a39c961 Minor repairs per jriegel/jmaustpc (fixes from wandererfan) 2013-03-30 13:42:30 +01:00
jriegel
a07f64a38a Merge branch 'shapestring' of WndererFan and includ configure switch. Windows default off! 2013-03-26 14:51:45 +01:00
WandererFan
c723cc99d1 Tidy PyList creation code. Add test driver. 2013-03-22 10:35:34 -04:00
WandererFan
830743d2e6 Refactor PyList logic to FT2FC from AppPartPy. 2013-03-22 09:38:32 -04:00
WandererFan
b507f618bb Refactor to move FC object creation from AppPartPy to FT2FC. 2013-03-21 09:14:25 -04:00
WandererFan
da8b6d4a81 Eliminate temporary vector in FT2FC. 2013-03-20 19:39:03 -04:00
WandererFan
6465e367eb Combine UCS2 & UTF-8 logic. 2013-03-20 19:12:53 -04:00
WandererFan
9c5608d8d2 Unicode cleanup. 2013-03-20 08:12:46 -04:00
WandererFan
d030445d39 Handle Py_UNICODE objects & ASCII Py_Strings 2013-03-18 18:05:38 -04:00
WandererFan
8b2c763e4a Basic ASCII text to wire version. Breaks on Unicode. std::exception handling. 2013-03-16 17:07:05 -04:00