You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collective fixes from tagpoint v0.2 (20130930) up to now (20150131).
Most fixes are for setting-up libspiro to be seen as a package, and to
solve some bugs listed on various distro sites. Also added two functions
similar to original TaggedSpiroCPsToBezier() and SpiroCPsToBezier() for
use by developers that need functions that require a void/nothing return.
Copy file name to clipboardExpand all lines: README.md
+24-22Lines changed: 24 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,15 @@ Then the usual steps to compile it:
26
26
```sh
27
27
./configure
28
28
make
29
-
make install
29
+
make check
30
+
sudo make install
30
31
```
31
32
32
33
## Usage
33
34
34
35
### In FontForge
35
36
36
-
FontForge will autodetect libspiro when it is installed in the usual way.
37
+
FontForge will autodetect libspiro when it is installed in the usual way.
37
38
38
39
An exception to this is with the Mac bundled version (where `FontForge.app` is copied to `/Applications`.) To install your compiled version into the bundle, run ```sh ./configure --prefix=/Applications/FontForge.app/Contents/Resources/opt/local/ ```
39
40
@@ -55,8 +56,8 @@ Mac OS X: A helping script, `./fontforge.sh` is provided to run FontForge inside
@@ -146,25 +147,25 @@ You must create an array of spiro control points:
146
147
147
148

148
149
149
-
Then call `SpiroCPsToBezier`, a routine which takes 4 arguments
150
+
Then call `SpiroCPsToBezier0`, a routine which takes 4 arguments and returns bc and an integer pass/fail flag.
150
151
151
-
1. An array of spiros
152
-
2. The number of elements in the array
152
+
1. An array of input spiros
153
+
2. The number of elements in the spiros array
153
154
3. Whether this describes a closed (True) or open (False) contour
154
-
4. A bezier context
155
+
4. A bezier results output context
156
+
5. An integer success flag. 1 = completed task and have valid bezier results, or 0 = unable to complete task, bezier results are invalid.
155
157
```c
156
158
bc = new_bezctx_ps();
157
-
SpiroCPsToBezier(points,4,True,bc)
159
+
success = SpiroCPsToBezier0(points,4,True,bc)
158
160
bezctx_ps_close(bc);
159
-
```
160
161
161
-
#### TaggedSpiroCPsToBezier
162
+
#### TaggedSpiroCPsToBezier0
162
163
163
-
Or call `TaggedSpiroCPsToBezier`. This routine requires that the array of spiro control points be tagged according to Raph's internal conventions. A closed curve will have an extra control point attached to the end of it with a type of `SPIRO_END`;
164
+
Or call `TaggedSpiroCPsToBezier0`. This routine requires that the array of spiro control points be tagged according to Raph's internal conventions. A closed curve will have an extra control point attached to the end of it with a type of `SPIRO_END`;
@@ -189,13 +190,14 @@ An open curve will have the type of the first control point set to `SPIRO_OPEN_C
189
190
190
191
(In an open contour the point types of the first and last control points are going to be ignored).
191
192
192
-
In this case there is no need to provide a point count nor an open/closed contour flag. That information can be obtained from the control points themselves. So `TaggedSpiroCPsToBezier` only takes 2 arguments
193
+
In this case there is no need to provide a point count nor an open/closed contour flag. That information can be obtained from the control points themselves. So `TaggedSpiroCPsToBezier0` only takes 2 arguments and returns bc and an integer pass/fail flag.
193
194
194
-
1. An array of spiros
195
-
2. A bezier context
195
+
1. An array of input spiros
196
+
2. A bezier results output context
197
+
3. An integer success flag. 1 = completed task and have valid bezier results, or 0 = unable to complete task, bezier results are invalid.
0 commit comments