Commit Graph

109 Commits

Author SHA1 Message Date
Mikko Mononen
06c1f0f3bb
Merge pull request #116 from porglezomp-misc/master
Parse <svg> percentage width for automatic sizing
2018-04-14 06:50:42 +03:00
Caleb Jones
d6eabf29c9 Parse <svg> percentage width for automatic sizing
Instead of calculating percentage coordinates relative to 1px, we calculate them
relative to 0px width, that way an explicit <svg width="100%"> will be converted
to <svg width="0px"> and trigger the bounding-box sizing calculation.
2018-04-13 19:57:06 -04:00
Mikko Mononen
1f17a7ecea
Merge pull request #113 from martinlindhe/master
type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITER
2018-03-16 23:17:31 +02:00
Martin Lindhe
19bf258060 type fix: change nsvg__parseLineJoin() default value to NSVG_JOIN_MITER 2018-03-16 15:05:04 +01:00
Mikko Mononen
b0be83ba62
Merge pull request #112 from luzpaz/misc-typo
Misc. README typo
2018-02-12 19:37:21 +02:00
luz.paz
00574a8157 Misc. README typo 2018-02-12 10:51:16 -05:00
Mikko Mononen
9a74da4db5 Merge pull request #99 from nightlark/patch-1
Added missing 'S' in NanoSVG
2017-07-09 11:46:20 +03:00
Ryan Mast
1859f6a5f5 Added missing 'S' in NanoSVG 2017-07-08 22:51:23 -07:00
Mikko Mononen
47697e1414 Fixed how sign is applied for fractions 2017-07-01 18:07:55 +03:00
Mikko Mononen
9b51689812 Fix for issue #90 - use custom strong to float conversion
Use custom strong to float conversion instead of the one from std
library to fix parsing floats with locales which use different number
format than specified by SVG.
2017-06-30 18:16:26 +03:00
Mikko Mononen
e41d60761f Merge pull request #92 from X-Ryl669/current
Fix for gradient transformation when scaling is used
2017-06-13 21:20:35 +03:00
X-Ryl669
17aa37f0c4 Fix for gradient transformation when scaling is used 2017-06-13 15:46:05 +02:00
Mikko Mononen
5ec585ce1a Merge pull request #89 from X-Ryl669/master
Fix for wrong computation in ArcTo function
2017-06-01 20:33:56 +03:00
X-Ryl669
7a9b4005c0 Fix for wrong computation in ArcTo function 2017-06-01 11:35:03 +02:00
Mikko Mononen
226e370e1d Merge pull request #84 from Djack1010/pull-request
Fix two errors found with AFL
2017-04-27 20:59:38 +03:00
djack1010
a53bdc7512 Revert wrong comment 2017-04-25 11:12:41 +02:00
djack1010
41dcaefdd0 Applied requested changes 2017-04-24 11:41:21 +02:00
djack1010
fe14c0386c Ignore malformed attributes in XML 2017-04-22 23:45:24 +02:00
djack1010
4310325aba Check buffer length in parseCoordinateRaw 2017-04-22 23:41:19 +02:00
Mikko Mononen
b20e2eb968 Merge pull request #83 from daniel-starke/master
Fix for typos, GCC warnings and shape ordering
2017-04-22 08:15:50 +03:00
Mikko Mononen
aeba90c947 Merge branch 'master' into master 2017-04-22 08:14:59 +03:00
Mikko Mononen
ac14b32af1 Merge pull request #82 from lieff/master
fix shapes order
2017-04-22 08:10:42 +03:00
daniel-starke
096f60a5c5 Changed reverse shape list to tail cached variant 2017-04-21 22:05:26 +02:00
lieff
c28363f9fb coding style 2017-04-21 21:42:46 +03:00
daniel-starke
3f40cbc53e Fixed reverse shape list implementation 2017-04-21 18:41:59 +02:00
lieff
64c8b0c00c fix shapes order 2017-04-21 19:28:06 +03:00
daniel-starke
c4a603c20e Fixed GCC warnings 2017-04-21 18:14:03 +02:00
Mikko Mononen
ca69314cb3 Merge pull request #81 from tpecholt/optimization
issue #80: Add new shapes to the head due to performance
2017-04-20 17:10:24 +03:00
tpechot
f76c596d8a add new shapes to the head due to performance, reverse list of shapes later 2017-04-20 14:32:02 +02:00
Mikko Mononen
46c7ae0ef9 Merge pull request #77 from mtyberg/master
addded support for stroke-miterlimit
2017-03-11 06:57:20 +02:00
Mark Tyberg
2f132b7ad8 addded support for stroke-miterlimit 2017-03-10 23:14:10 -05:00
Mikko Mononen
dc12d90586 Merge pull request #66 from ewfuentes/typoFix
Fixed typo and added variable types
2016-03-23 07:38:48 +02:00
Erick Fuentes
7742da24b0 Fixed typo and added variable types 2016-03-22 20:00:44 -04:00
Mikko Mononen
a523e0215f Merge pull request #59 from deanm/grain
Fix minor typo in credit comment (Anti-Graim -> Anti-Grain).
2016-02-02 18:31:21 +02:00
Dean McNamee
a2cab64022 Fix minor typo in credit comment (Anti-Graim -> Anti-Grain). 2016-02-02 13:56:30 +01:00
Mikko Mononen
116371a50b Merge pull request #56 from deanm/master
Fix relative T/t path commands.  Typo from S/s command.
2016-01-23 23:38:30 +02:00
Dean McNamee
b021682f5a Fix relative T/t path commands. Typo from S/s command. 2016-01-23 18:49:33 +01:00
Mikko Mononen
ba02725b73 Merge pull request #51 from nifker/master
Update premake4.lua
2016-01-17 19:33:22 +02:00
nifker
16eacef358 Update premake4.lua 2016-01-03 22:49:39 +01:00
Mikko Mononen
fcb2214e46 Merge pull request #49 from nigels-com/merge-fread-fixup
Resolve release-mode gcc compilation warning: fread return value ignored
2015-12-21 14:01:54 +02:00
Nigel Stewart
a5be2ffa50 Resolve release-mode gcc compilation warning: fread return value ignored 2015-12-21 21:41:25 +10:00
Mikko Mononen
dc75508682 Implemented dashed stroke rendering 2015-11-07 23:19:30 +02: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
Mikko Mononen
af280712ed Merge pull request #46 from galibert/master
Visibility fixes
2015-11-05 18:12:07 +02:00
Olivier Galibert
d023064305 Fix the visibility attribute parsing, keep the information in the
shape and take it into account in the rendering.
2015-11-05 17:07:14 +01:00
Mikko Mononen
d057a2c425 Merge pull request #42 from jry2/master
Fixed VC2015 RC warnings.
2015-06-13 11:16:00 +03: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
cd0841b54a Make div255 to compile on gcc 2015-06-12 12:36:23 +03:00
Mikko Mononen
1dd78511c4 Merge pull request #40 from chrismile/master
Fix for "nsvg__scanlineSolid"
2015-06-12 12:30:08 +03:00
Christoph Neuhauser
8d51b88261 Fix for "nsvg__scanlineSolid"
Updated fix for https://github.com/memononen/nanosvg/issues/37 (code now
using nsvg__div255).

Fix for "nsvg__scanlineSolid" #2

Updated fix for https://github.com/memononen/nanosvg/issues/37 (code now
using nsvg__div255).
2015-06-12 11:11:26 +02:00