Commit Graph

17 Commits

Author SHA1 Message Date
Mikko Mononen
cc6c08d3a8 Restore example2 test file 2020-09-28 22:00:06 +03:00
Mikko Mononen
ddd39e9669 Fix for #185
- prevent infinite loop when gradient ID is left to empty string
- prevent infinite loop when gradient references to self
- lookup up to 32 references back
2020-09-28 10:49:46 +03:00
Mikko Mononen
7efce85328 Better support for coordinates, fixes local space percentage gradients
- fixed zero check in form inverse (was producing NaNs
- improved coordinate parsing
- handle gradient percentage coords properly
2015-11-07 20:00:05 +02:00
jry2
b3dc3e6543 Fixed VC2015 RC warnings.
-possible loss of data while conversions
-potentially uninitialized local variables
-declaration hides previous local declaration
2015-06-12 21:19:26 +02:00
Mikko Mononen
5966d6e77a Handle fill rule properly
- added parser for fill rule
- added even-odd fill rule support for rasteriser
2015-06-12 07:45:34 +03:00
Mikko Mononen
c4f15e8f2f Restore example filename 2014-11-05 18:57:34 +02:00
Mikko Mononen
205d5197d2 Issue #20: better handling of miter joins
- better handling if stroke miter joins (inner bevel)
- correct default miter 4
2014-11-05 10:47:35 +02:00
Mikko Mononen
cd0a2029fa First stab at line rendering
- added tessellation and rendering of lines
- added parsing for line joins and caps
2014-10-31 15:56:36 +02: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
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
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
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
e4f10ab851 Initial commit. 2013-10-05 18:03:07 +03:00