Commit Graph

36 Commits

Author SHA1 Message Date
xtemp09
8f517ec5c7 Fix the typo in #9267 2023-04-15 15:41:33 +07:00
xtemp09
c03d8a058f 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
99644ac5e7 [Part]handle unicode filename on win 2023-03-29 15:04:57 -04:00
wandererfan
80da187cd7 [Part][Draft]fix #8271 temporary files on windows 2023-01-28 07:13:05 -08:00
jim
e789e73d1f fix whitespace and add comments 2022-10-17 11:15:09 -04:00
jim
fe165ea3da 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
acdfde774a Part: Replace C cast 2022-09-18 11:06:51 -05:00
wmayer
ad7375380a Part: modernize C++: replace 'typedef' with 'using' 2022-08-29 19:31:50 +02:00
berniev
47ac049e14 Mod: use emplace_back 2022-08-05 10:36:16 +02:00
Uwe
27c4ee41d7 [Part] E*: remove unneeded includes
- also sort includes
2022-07-04 10:59:16 +02:00
wmayer
b3cd06afe8 Py: fix memory leaks by incorrect use of PyList_Append 2020-12-13 16:30:04 +01:00
luz paz
1877611332 Part: fix header uniformity + trailing whitespace
[skip ci]
2020-12-10 11:56:55 +01:00
wandererfan
7cb6ebef07 [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
41ae2518dc [Part]Handle CJK font names for ShapeString 2020-02-19 13:11:01 -05:00
luz.paz
17ada69518 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
216926233f Part: Make 3rd party libraries into PCH 2019-05-02 07:09:22 +02:00
wmayer
c0ca04adf9 activate pCH on Part module 2019-04-28 15:33:25 +02:00
WandererFan
5d08c560db fix #3094 ShapeString tracking 2017-06-24 21:12:54 -04:00
Peter Lama
fa4bebf2e0 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
51e4eebbc6 + Prefer prefix ++/-- operators for non-primitive types 2015-10-06 21:16:44 +02:00
wmayer
a3403455bd + fixes #0002229: some ttf fonts make Draft.makeShapeString crash 2015-08-26 22:56:37 +02:00
wmayer
f53c22417e + remove unneeded semicolons 2014-05-08 17:32:23 +02:00
wmayer
55984a200f + fix flaws found with code analyzer tool 2014-05-07 13:09:44 +02:00
WandererFan
94f8469df1 Improve geom creation, scaling and translation 2014-03-18 07:57:44 +01:00
WandererFan
3814c6b126 1443: Fix ShapeString user font selection on Windows 2014-02-27 15:18:18 +01:00
wmayer
6c1c33f568 Prepare Windows build to use FreeType 2013-06-11 17:28:21 +02:00
wmayer
72d2a38d85 Minor repairs per jriegel/jmaustpc (fixes from wandererfan) 2013-03-30 13:42:30 +01:00
jriegel
39824cc7bf Merge branch 'shapestring' of WndererFan and includ configure switch. Windows default off! 2013-03-26 14:51:45 +01:00
WandererFan
7ed64d340a Tidy PyList creation code. Add test driver. 2013-03-22 10:35:34 -04:00
WandererFan
14c21746b9 Refactor PyList logic to FT2FC from AppPartPy. 2013-03-22 09:38:32 -04:00
WandererFan
6ecee09443 Refactor to move FC object creation from AppPartPy to FT2FC. 2013-03-21 09:14:25 -04:00
WandererFan
bbc167ac67 Eliminate temporary vector in FT2FC. 2013-03-20 19:39:03 -04:00
WandererFan
3305dd24d3 Combine UCS2 & UTF-8 logic. 2013-03-20 19:12:53 -04:00
WandererFan
1f6b249c85 Unicode cleanup. 2013-03-20 08:12:46 -04:00
WandererFan
c3da34736f Handle Py_UNICODE objects & ASCII Py_Strings 2013-03-18 18:05:38 -04:00
WandererFan
070efe9d95 Basic ASCII text to wire version. Breaks on Unicode. std::exception handling. 2013-03-16 17:07:05 -04:00