Bryan McConkey
022f52ee94
Fix for C89 compilers. In compilers that only support C89 the variables must be declared first.
2014-08-18 16:00:39 -04:00
Jean-Philippe Jodoin
771146226b
Bug fix for rotation handling. We were doing [T][R0][T-1] instead of [T-1][R0][T] because of the premultiply in nsvg__parseRotate.
2014-07-24 16:23:22 -04:00
Mikko Mononen
35b5b59729
Fixed bug when using close 'z' followed by relative move to 'm'
...
- close path was not moving the current point to the end of the close
line segment
2014-06-14 01:09:04 +03:00
Mikko Mononen
ed582145f6
Fixed borked notused macro
2014-06-13 21:21:26 +03:00
Mikko Mononen
c53c48759d
Added typedefs to structs
...
- typedef’d structs
- added named parameters
2014-06-12 20:53:00 +03:00
Mikko Mononen
1acb9f0c9b
Fixed issue #11
...
- fixed compiler warnings
- supper single and double quotes
2014-06-12 20:01:32 +03:00
Tommy Nguyen
6cab36303d
Fixed a couple of compiler warnings.
...
- anonymous types declared in an anonymous union are an extension
- unused parameters
2014-05-31 10:12:00 +02:00
Mikko Mononen
4d78e65c86
Fix for issue #12
...
- fixed previous control point for shorthand beliers
2014-05-25 12:55:25 +03:00
Mikko Mononen
95caf10c0b
Fix for issue #4 and issue #5 added per shape opacity parameter
...
- added parsing for per shape opacity
- added support for per shape opacity in rasteriser
2014-04-04 21:58:50 +03:00
Mikko Mononen
1b894120be
Fixed issue #6
...
- fixed endless loop in nsvg__findGradientData
2014-03-29 10:03:53 +02:00
Bryan McConkey
6cc0d0163e
Fix for nsvg__parseTransform not parsing multiple transformations
2014-03-28 23:06:15 -04:00
Mikko Mononen
e937a513c6
Fix for unpremultiply, osx compiling
...
- fixed compiling on osx mavericks
- fixed unpremultiply
2014-02-25 23:03:38 +02:00
Bryan McConkey
1666f36021
Storing pointer to path data instead of index. As per memononen's feedback.
2014-02-23 12:08:23 -05:00
Bryan McConkey
5a48c96aac
Fix for transforms on path elements with 'transform' attributes which appear after the path data 'd' attributes but should still apply to the path
2014-02-23 08:45:22 -05:00
Mikko Mononen
0189176ec4
Fixed null pointer access in unit conversion
2014-02-02 18:25:53 +02:00
Mikko Mononen
47864e21bc
Added gradients
...
- renamed NSVGParser to NSVGparser
- first stab at parsing gradients
- first stab at rendering gradients
- fixed overflow in rasterizer
2014-01-30 23:33:41 +02:00
Mikko Mononen
135a658741
Added viewBox and unit coversion support
...
- added exact bounds calculation for bezier curves, paths, shapes
- added unit coversion for svg length values (use px internally)
- added viewBox and preserveAspectRatio handling
- removed some test SVGs
2014-01-29 19:50:41 +02:00
Mikko Mononen
a866ad3d7a
Further nextPathItem fixes for numbers
2014-01-26 22:07:28 +02:00
Mikko Mononen
87aed6d1fc
Fixed bug in path number parsing in exponent form (i.e. 6e-5)
2014-01-23 19:02:23 +02:00
Mikko Mononen
95daad571d
Fix for potential buffer override in nsvg__parseElement()
2014-01-11 21:01:49 +02:00
Mikko Mononen
b3f906a393
Updated documentation
2014-01-09 23:22:38 +02:00
Mikko Mononen
8e47686015
Added pool alloc for active edges, improved tesselation algo, better guessing of image size
...
- added pool alloc for active edges
- improved tesselation algo
- better guessing of image size
- reverted tiger to default state
2014-01-09 23:05:52 +02:00
Mikko Mononen
ad2841fccb
Changed struct names, fixed color parser bug and added rasterizer
...
- changed struct names from NSVGShape to NSVGshape
- fixed silly bug in color parser (plus reversed the r/b)
- changed the shape order so that they are in order they are parsed
- added super simple svg rasterizer based on stb_truetype rasterizer
- added example for the rasterizer
2014-01-09 22:15:26 +02:00
Mikko Mononen
297c2d5252
Fixed issue #3
...
- added missing break after 'm'/'M' path command
- path command 'm'/'M' is converted to 'l'/'L' so that multiple
coordinate pairs behave correctly
- fixed rendering of first point on path
2014-01-02 20:43:27 +02:00
Mikko Mononen
f5b57c1876
Fox for Issue #2
...
- reset current point only at the start of path command
2014-01-02 20:28:15 +02:00
Jetro Lauha
9ea087a788
removed dummy references and replaced with pragma to ignore C4100 warning & removed one unreachable return
2013-10-10 20:17:06 +03:00
Jetro Lauha
c7baafd493
fixed bunch of VS2010 warnings/errors (when compiled as C code)
2013-10-10 15:21:36 +03:00
Mikko Mononen
f52dd2cf2c
Removed debug printfs
2013-10-08 23:48:46 +03:00
Mikko Mononen
572bbb2d4d
Changed the structure of returned SVG data to image, shapes and paths
...
- Needed support to SVG image size, hence added following:
- added NSVGImage, which holds image size and list of shapes
- added NSVGShape which holds color/store and list of paths
2013-10-08 23:48:46 +03:00
Mikko Mononen
d79b9db71f
Be more specific which version if AGG was used for inspiration
2013-10-07 15:58:59 +03:00
Mikko Mononen
4ba0c79055
Added more documentation, removed unused tol, added shapeId
...
- added more documentation to NSVGPath
- removed unused 'tol'
- added shapeId to paths, used to identify path belonging to same shape
- small text change to readme
2013-10-06 01:46:50 +03:00
Mikko Mononen
e4f10ab851
Initial commit.
2013-10-05 18:03:07 +03:00