Commit Graph

16 Commits

Author SHA1 Message Date
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