summaryrefslogtreecommitdiff
path: root/xps/xpspath.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Move initialization of fill_rule to the top of xps_parse_path. ↵Tor Andersson2009-10-011-4/+2
| | | | | | xps_parse_path_geometry set the fill_rule from arguments, then called xps_parse_abbreviated_geometry which was overwriting the fill_rule during its initialization. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10109 a1074d23-0009-0410-80fe-cf8c14f379e6
* Thread base_uri argument to fixed page parsing functions so that resources ↵Tor Andersson2009-10-011-15/+23
| | | | | | specified with relative paths can be resolved in the right context. Also fixed a few warnings. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10107 a1074d23-0009-0410-80fe-cf8c14f379e6
* Add test for empty paths when updating bounding boxes.Tor Andersson2009-07-281-2/+10
| | | | git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9896 a1074d23-0009-0410-80fe-cf8c14f379e6
* Clarify some error handling in XPS parsing code.Tor Andersson2008-11-261-2/+7
| | | | git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9245 a1074d23-0009-0410-80fe-cf8c14f379e6
* Add copyright and description banners to the xps and svg code.Ralph Giles2008-08-211-0/+15
| | | | | | Bug 690008. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9011 a1074d23-0009-0410-80fe-cf8c14f379e6
* Forgot to read current point when drawing absolute quadratic curves in XPS.Tor Andersson2008-08-071-0/+1
| | | | git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8950 a1074d23-0009-0410-80fe-cf8c14f379e6
* Redesign of IsStroked logic to not rely on global context state. Also ↵Tor Andersson2008-04-021-40/+45
| | | | | | properly uses gs_closepath when possible. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3057 06663e23-700e-0410-b217-a244a6096597
* Addendum to revision 3055; need to closepath with an explicit lineto since ↵Tor Andersson2008-04-011-1/+1
| | | | | | the IsStroked logic uses gs_moveto to skip past path segments. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3056 06663e23-700e-0410-b217-a244a6096597
* Support IsStroked and IsFilled attributes when drawing paths.Tor Andersson2008-04-011-7/+59
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3055 06663e23-700e-0410-b217-a244a6096597
* Manipulate matrix stack directly instead of using gsave/grestore for ↵Tor Andersson2008-02-061-11/+6
| | | | | | PathFigure.Transform. Fixes disappearing graphics when PathFigure.Transform is present. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3021 06663e23-700e-0410-b217-a244a6096597
* Fix typo that caused line joins to be confused with line caps.Tor Andersson2008-01-301-1/+1
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3018 06663e23-700e-0410-b217-a244a6096597
* Guard against floating point rounding errors near limits of sqrt and acos in ↵Tor Andersson2008-01-301-2/+9
| | | | | | the arc code. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3017 06663e23-700e-0410-b217-a244a6096597
* Adjust dash offset by stroke width. Fixes rendering error in fts_06 page 8.Tor Andersson2008-01-301-5/+1
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3016 06663e23-700e-0410-b217-a244a6096597
* Rename variables according to the names used in the formulas in the SVG ↵Tor Andersson2008-01-171-89/+77
| | | | | | spec. Fix bug where the translation component of the final matrix used when drawing arc segments was wrong. Solves bug 689482. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3015 06663e23-700e-0410-b217-a244a6096597
* Rework arc code to work a bit better. Still has some errors when calculating ↵Tor Andersson2007-11-291-126/+173
| | | | | | the center of the arcs. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2982 06663e23-700e-0410-b217-a244a6096597
* Fix for MXDW/CambriaPoster.xps geometry parsing bug.Tor Andersson2007-10-111-2/+2
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2928 06663e23-700e-0410-b217-a244a6096597
* Remove some C99-isms to make the code compilable with MSVC.Tor Andersson2007-09-241-2/+7
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2922 06663e23-700e-0410-b217-a244a6096597
* Save decoded image data in the parts so images drawn multiple times do not ↵Tor Andersson2007-09-061-1/+3
| | | | | | need to be decoded each time. Use XPS_DISABLE_TRANSPARENCY environment variable to disable transparency device for debugging. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2912 06663e23-700e-0410-b217-a244a6096597
* Use colorspaces in all color code. Colorspace loading is stubbed to use ↵Tor Andersson2007-09-051-7/+8
| | | | | | device colorspaces only. Fix font crash when using the pdfwrite device. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2911 06663e23-700e-0410-b217-a244a6096597
* Fix workaround for pdf 1.4 device resetting. Remove some debug messages.Tor Andersson2007-09-031-3/+3
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2910 06663e23-700e-0410-b217-a244a6096597
* Keep track of the current clip region bounding box. Use the proper bounding ↵Tor Andersson2007-08-071-2/+153
| | | | | | box when creating transparency groups. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2879 06663e23-700e-0410-b217-a244a6096597
* XPS arcs were not drawn with the correct rotation sense (clockwiseHenry Stiles2007-08-031-5/+10
| | | | | | | vs. counterclockwise). Fixes several panels in fts_19xx.xps. There are still open problems in this fts for what appear to be pathological cases. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2875 06663e23-700e-0410-b217-a244a6096597
* Tiling images. Fix TIFF resolution bug.Tor Andersson2007-07-161-26/+20
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2867 06663e23-700e-0410-b217-a244a6096597
* Brush and element parsing switches refactored. Opacity masks. Opacity only ↵Tor Andersson2007-07-121-86/+155
| | | | | | rendering mode for creating opacity masks (not fully complete). Fill rule respected for path fills and clips. Abbreviated syntax S and s for smooth beziers implemented. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2866 06663e23-700e-0410-b217-a244a6096597
* Workaround for strange behavior when pushing and popping pdf14trans ↵Tor Andersson2007-07-051-2/+0
| | | | | | compositor repeatedly. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2861 06663e23-700e-0410-b217-a244a6096597
* BROKEN transparency test code to push/pop transparency device. Uses #define ↵Tor Andersson2007-06-281-0/+8
| | | | | | in ghostxps.h to switch between different locations for pushing/popping. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2857 06663e23-700e-0410-b217-a244a6096597
* Tiled patterns and stroked paths with complex brushes.Tor Andersson2007-06-141-33/+27
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2855 06663e23-700e-0410-b217-a244a6096597
* Parse arcs and quadratic beziers in abbreviated path geometry.Tor Andersson2007-06-141-91/+139
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2854 06663e23-700e-0410-b217-a244a6096597
* Removing many debug messages. Fix a buffer overflow and some uninitialized ↵Tor Andersson2007-05-141-31/+21
| | | | | | reads. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2842 06663e23-700e-0410-b217-a244a6096597
* Parse dash patterns. Transform before clipping.Tor Andersson2007-05-091-31/+38
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2837 06663e23-700e-0410-b217-a244a6096597
* Clipping and some line drawing attributes.Tor Andersson2007-05-031-17/+71
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2833 06663e23-700e-0410-b217-a244a6096597
* Parse resource dictionaries and resolve resource references when parsing ↵Tor Andersson2007-05-021-9/+33
| | | | | | normal XPS elements. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2832 06663e23-700e-0410-b217-a244a6096597
* Parse PathFigure XML elements.Tor Andersson2007-03-151-9/+351
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2800 06663e23-700e-0410-b217-a244a6096597
* Convention for naming attributes and tag variables when parsing XML. ↵Tor Andersson2007-03-011-85/+94
| | | | | | Destructor for gradient stop function. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2782 06663e23-700e-0410-b217-a244a6096597
* We have linear gradients.Tor Andersson2007-02-271-1/+2
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2776 06663e23-700e-0410-b217-a244a6096597
* We have radial gradients.Tor Andersson2007-02-271-0/+6
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2775 06663e23-700e-0410-b217-a244a6096597
* Parse paths with implicit commands.Tor Andersson2007-02-211-39/+49
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2773 06663e23-700e-0410-b217-a244a6096597
* Free memory after processing. Fixed bug with ZIP parsing parts that are both ↵Tor Andersson2007-02-201-2/+12
| | | | | | stored and interleaved. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2768 06663e23-700e-0410-b217-a244a6096597
* We have tigers.Tor Andersson2007-02-151-24/+131
| | | | git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2765 06663e23-700e-0410-b217-a244a6096597
* Parse XML content into nodes in memory. Parse and draw path elements.Tor Andersson2007-02-131-0/+211
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2760 06663e23-700e-0410-b217-a244a6096597