simplify SPCurve::penultimate_point and return 2geom type
pencil tool: don't use sp_curve_length macro but good function ;)
add SPCurve::get_segment_count
Temporary "fix" for the recent pattern crash caused by invalid path data - please review and insert correct values for the missing coordinates!
16 years agoPrevent 'title', 'desc' and 'metadata' elements being moved to 'defs' when ungrouping...
Prevent 'title', 'desc' and 'metadata' elements being moved to 'defs' when ungrouping (fixes bug 243720).
16 years agoApproximately closed test for path parsing now looks at the absolute coordinate value...
Approximately closed test for path parsing now looks at the absolute coordinate values again (in accordance with how PathString used to work before and relative coordinates, and how it works now).
Initial cut of sliders in toolbars
Fixed i18n for overflow menu items.
fix the snapindicator stealing release event by grabbing the acetate on click, not on motion
even with zero opacity, paths must be selectable in outline mode
return results from 2geom path instead of old path
remove unused function first_bpath
pen tool: use SPCurve::last_segment in favor of last_bpath
add SPCurve::first_segment and last_segment
replace some spcurve->last_bpath calls with spcurve->is_empty
recognize HLineSegment and VLineSegment while looping through curves
recognize HLineSegment and VLineSegment in feeding paths to cairo
add commented HLineSegment and VLineSegment to svg writer
warning cleanup
remove unused function
Use Python script instead of shell script for .fig import (fixes bug 240889).
sodipodi:docname is obsolete
Added conditional fallback for call in GLib 2.14+
16 years agouse spcurve methods instead of macro (which references to old nartbpath) to determine...
use spcurve methods instead of macro (which references to old nartbpath) to determine first and second nodal points
noop: be more consistent with function names (get_pathvector => set_pathvector)
16 years agouse 2geom path for bbox calculation. (gets rid of yet another reference to old nartbp...
use 2geom path for bbox calculation. (gets rid of yet another reference to old nartbpath in spcurve!)
don't use splivarot to get livarot path, use livarot's LoadPathVector method instead
use CairoRenderContext::renderPathVector
add CairoRenderContext::renderPathVector
don't use splivarot to get livarot path, just use LoadPathVector method
use all 2geom typed pathv_matrix_point_bbox_wind_distance
add const to pointers that are not written to
use all 2geom typed pathv_matrix_point_bbox_wind_distance
add const to references that are not written to
16 years agouse pathv_matrix_point_bbox_wind_distance instead of nr_path_matrix_point_bbox_wind_d...
use pathv_matrix_point_bbox_wind_distance instead of nr_path_matrix_point_bbox_wind_distance everywhere
16 years agorewrite nr_path_matrix_point_bbox_wind_distance in 2geom terms: pathv_matrix_point_bb...
rewrite nr_path_matrix_point_bbox_wind_distance in 2geom terms: pathv_matrix_point_bbox_wind_distance. (still not 100% clear to me what this method does, but seemed not necessary for rewriting)
Fix for opening .eps/.ps/.cdr/etc files with % in their names.
Do not have menu entry for SVG Fonts if they are not enabled
moving the fonts dialog to a more logical place (though it still does not work for me)
Fixed compilation when the new SVG font stuff is not enabled.
* remove g_warnings
* add 2 experimental entry fields in SVGFonts dialog
* add 2 experimental entry fields in SVGFonts dialog
fix bbox calculation for groups that contain groups with nothing in them (zero bbox groups)
help detection of path read bug
adding list of available SVGFonts to the SVGFonts dialog
warning cleanup
missing files from previous commit
adding a dialog for SVG Fonts
Warning cleanup
adding ifdef HAVE_CONFIG_H
whitespace
added unicode block (codepoint ranges) lookups
improve speed of getting curves to cairo, the same way as boundingbox calculation was optimized: do not create transformed path, transform the path's points instead
kill the green fish
add #include <string.h> for memset(), so that it is portable
Resolve ID clashes when pasting (fixes bug 165936).
Cmake: Add GSL to LIBS and Includes
Cmake: remove header files from source lists
delivarotify, render with cairo; regression: cairo cannot do inverse
delivarotify, render with cairo, use nr_path functions for bbox and distance
delivarotify, render with cairo
add helpers for creating cairo_t for a canvas buf
update for 32 instead of 24 bpp canvas buf
delivarotify
no more creating and looping over extra buffers for rendering canvas arena, draw to the canvas buf directly now that it's also 32bpp
switch to 32bpp canvasbuf, create cairo context for it, optionally output to screen using cairo too (for now off, as it's slower than gdk)
update for 32bpp canvas buf; delivarotify
use light blue for text selection, at least until we can do inversion again
speed up bounds_exact for 2geom even more.
use exact bbox again in updating shapes
add comment
make faster 2geom bbox calc.
sorry to have broken build
convert optimizing check into 2geom terms. hopefully correct, please review if you have time
add #include <string.h> for portability
need #include <typeinfo>
tweak stdout/stderr piping
implement kerning by glyph-name, g1 and g2 attributes
warning cleanup
warning cleanup
16 years agoreintroducing code that initially committed in revision 18594 and the have been rever...
reintroducing code that initially committed in revision 18594 and the have been reverted on revision 18607.
* implemented handling of font-style, font-variant, font-weight, and
font-stretch attributes on font-face tags
This have been previously reverted because I thought they were already handled in node->style, but now I see that this code is needed for font description (used in the
font tag to declare font attributes to be stored in the user agent font database).
The node->style info is used for font specification (used by document authors with the purpose of declaring the properties of fonts that they would like in their SVG
documents).
* implemented handling of font-style, font-variant, font-weight, and
font-stretch attributes on font-face tags
This have been previously reverted because I thought they were already handled in node->style, but now I see that this code is needed for font description (used in the
font tag to declare font attributes to be stored in the user agent font database).
The node->style info is used for font specification (used by document authors with the purpose of declaring the properties of fonts that they would like in their SVG
documents).
read PathVector instead of NArtBpath
read PathVector instead of NArtBpath
split paths using 2geom PathVector
LPE Spiro: don't catch all exceptions, only the ContinuityError
remove obsolete LoadArtBPath from livarot
use LoadPathVector instead of LoadArtBPath everywhere
create method for Livarot paths to load PathVectors instead of NArtBpaths
use pathvector directly from SPCurve in LPE path parameter.
better method to convert nartbpath to PathVector
* src/2geom/isnan.h, src/libcola/cola.cpp, src/style.cpp, src/seltrans.cpp,
src/libcola/gradient_projection.cpp, src/libvpsc/generate-constraints.cpp,
src/libnr/nr-types.cpp, src/libnr/nr-point-fns-test.cpp, src/isnan.h,
src/libnr/nr-point-fns.cpp, src/libnr/in-svg-plane-test.cpp,
src/doxygen-main.cpp, src/display/nr-filter-composite.cpp,
src/display/nr-filter-merge.cpp, src/display/nr-filter-gaussian.cpp,
src/display/bezier-utils.cpp, src/Makefile_insert, src/eraser-context.cpp,
src/dyna-draw-context.cpp, src/tweak-context.cpp, src/sp-namedview.cpp,
src/libnr/in-svg-plane-test.h, src/libnr/nr-point-fns-test.h,
src/mod360-test.h, src/CMakeLists.txt, src/2geom/linear.h:
Properly fix the conflicting isnan.h problem:
1) Update src/2geom/isnan.h to match newest Inkscape src/isnana.h
(Also commited this change to lib2geom project repository)
2) Remove Inkscape's src/isnan.h
3) Update all files to include src/2geom/isnan.h instead of src/isnan.h
src/libcola/gradient_projection.cpp, src/libvpsc/generate-constraints.cpp,
src/libnr/nr-types.cpp, src/libnr/nr-point-fns-test.cpp, src/isnan.h,
src/libnr/nr-point-fns.cpp, src/libnr/in-svg-plane-test.cpp,
src/doxygen-main.cpp, src/display/nr-filter-composite.cpp,
src/display/nr-filter-merge.cpp, src/display/nr-filter-gaussian.cpp,
src/display/bezier-utils.cpp, src/Makefile_insert, src/eraser-context.cpp,
src/dyna-draw-context.cpp, src/tweak-context.cpp, src/sp-namedview.cpp,
src/libnr/in-svg-plane-test.h, src/libnr/nr-point-fns-test.h,
src/mod360-test.h, src/CMakeLists.txt, src/2geom/linear.h:
Properly fix the conflicting isnan.h problem:
1) Update src/2geom/isnan.h to match newest Inkscape src/isnana.h
(Also commited this change to lib2geom project repository)
2) Remove Inkscape's src/isnan.h
3) Update all files to include src/2geom/isnan.h instead of src/isnan.h
patch 241565
add todo comment to make code prettier
sp_shape now uses 2geom PathVector for all marker positions
sp_shape_render for cairo-renderer extension now uses 2geom for marker positions
remove not used variable
2geomify sp_shape_update_marker_view.
patch from 226459, approved by joel
Partial fix (for preventing numerical issues) and restructuring for PathString, plus a small fix for the new 2geom sp_svg_write_curve.
Fix for sp-style-elem-test to make it work again with new code.
commenting out a g_warning