Commit Graph

19 Commits

Author SHA1 Message Date
Albrecht Schlosser
a774e120bc Update nanosvg library to latest upstream version
commit ccdb1995134d340a93fb20e3a3d323ccb3838dd0
Merge: 3cdd4a9 419782d
Author: Mikko Mononen <memononen@gmail.com>
Date:   Fri Sep 3 21:24:42 2021 +0300

    Merge pull request #198 from ctrlcctrlv/CVE_2019_1000032

    Fix decimal values in color fields (nsvg__parseColorRGB, nsvg__parseColorHex)
2021-09-13 19:31:27 +02:00
Albrecht Schlosser
9f84fd05e8 Update bundled nanosvg library to latest version
For details see:

- README.bundled-libs.txt
- nanosvg/README.txt
2021-02-22 14:37:26 +01:00
Albrecht Schlosser
f09e17c3c5 Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files

The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
2020-07-06 20:28:20 +02:00
Albrecht Schlosser
2eb72175ba Update nanosvg library to current upstream version
See README.bundled-libs.txt
2019-05-23 14:23:09 +02:00
Matthias Melcher
c97990e517 Removed all shadow lint in header files (STR #2714). 2019-02-02 22:29:53 +01:00
Albrecht Schlosser
716a5067a9 Update nanosvg library to current upstream version
See README.bundled-libs.txt
2019-01-31 19:06:06 +01:00
Albrecht Schlosser
0ecb83b298 Update bundled nanosvg lib to latest upstream version.
$ git log -2 master
commit 06c1f0f3bb041d69a73bb74067d063a700215b0e
Merge: 1f17a7e d6eabf2
Author: Mikko Mononen <memononen@gmail.com>
Date:   Sat Apr 14 06:50:42 2018 +0300

    Merge pull request #116 from porglezomp-misc/master
    
    Parse <svg> percentage width for automatic sizing

commit d6eabf29c9c10038924e823e693dddef281abee5
Author: Caleb Jones <code@calebjones.net>
Date:   Fri Apr 13 19:57:06 2018 -0400

    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.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-01 10:45:47 +00:00
Albrecht Schlosser
4ebaee0f40 Reorganize nanosvg bundled library.
Rename altsvgrast.h to its original name nanosvg.h and use a new
GitHub fork of nanosvg to maintain FLTK specific patches.

https://github.com/fltk/nanosvg

The diff files (altsvgrast.diff and nanosvg.diff) are no longer necessary
and have been removed. For more information see README.bundled-libs.txt.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-04 21:39:50 +00:00
Manolo Gouy
c0cc3d4160 These files are no longer used. They are replaced by nanosvg.h and nanosvg.diff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09 15:53:10 +00:00
Manolo Gouy
9dfef1c5f7 Differences between the FLTK-modified and the nanosvg versions of file nanosvg.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09 15:51:06 +00:00
Manolo Gouy
a0e7cbfa57 Fix nanosvg implementation of nsvg__atof() to allow compilation with Visual Studio 7.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09 15:47:04 +00:00
Manolo Gouy
0bf5f9809a Modify nanosvg.h to support compilation by Visual Studio 7.
This is a new implementation that does not tamper with the program's locale.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-07 20:16:08 +00:00
Manolo Gouy
d5cc04b2bc Set svn ps for this new file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06 16:52:10 +00:00
Manolo Gouy
d383b82e7e Gives differences between FLTK and original versions of file nanosvg.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06 16:51:14 +00:00
Manolo Gouy
a2d9a6a6c4 Return fl_nanosvg.h close to nanosvg.h, without reformatting.
fl_nanosvg.h had before been reformatted by Xcode.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06 16:49:05 +00:00
Manolo Gouy
0dd8392ae9 Set svn ps for this new file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06 16:38:11 +00:00
Manolo Gouy
950ec3e863 Modify how the nanosvg source code is used to support compilation with Visual Studio 7.
1) The original nanosvg.h file is modified for FLTK in file fl_nanosvg.h. The only change is
to remove the implementation of function nsvg__atof().

2) FLTK provides an implementation	of nsvg__atof() based on sscanf().

3) FLTK changes the LC_NUMERIC locale to "C" before calling nanosvg
and resets it to its previous state after.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06 16:25:42 +00:00
Manolo Gouy
d6349e180a Set svn:keywords
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-03 13:20:52 +00:00
Manolo Gouy
1a28d85dc3 Add new Fl_SVG_Image class to support scalable vector graphics images using the (modified) nanosvg software.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-03 13:14:25 +00:00