current problem with inkscape-svn & poppler-0.8.7
by unknown@example.com
I upgrader last week poppler to version 0.8.7 and then get error on
inkscape svn compilation, I suppose it's related to poppler upgrade
instead of inkscape changes:
../../inkscape/src/extension/internal/pdfinput/pdf-parser.cpp: In member
function ‘void PdfParser::doShowText(GooString*)’:
../../inkscape/src/extension/internal/pdfinput/pdf-parser.cpp:2264:
error: no matching function for call to ‘GfxFont::getNextChar(char*&,
int&, CharCode*, Unicode**, int*, double*, double*, double*, double*)’
/usr/include/poppler/GfxFont.h:204: note: candidates are: virtual int
GfxFont::getNextChar(char*, int, CharCode*, Unicode*, int, int*,
double*, double*, double*, double*)
../../inkscape/src/extension/internal/pdfinput/pdf-parser.cpp:2317:
error: no matching function for call to ‘GfxFont::getNextChar(char*&,
int&, CharCode*, Unicode**, int*, double*, double*, double*, double*)’
/usr/include/poppler/GfxFont.h:204: note: candidates are: virtual int
GfxFont::getNextChar(char*, int, CharCode*, Unicode*, int, int*,
double*, double*, double*, double*)
warning: unused variable ‘nSpaces’
Here is the definition of this function in poppler/GfxFont.h:
// Get the next char from a string <s> of <len> bytes, returning the
// char <code>, its Unicode mapping <u>, its displacement vector
// (<dx>, <dy>), and its origin offset vector (<ox>, <oy>). <uSize>
// is the number of entries available in <u>, and <uLen> is set to
// the number actually used. Returns the number of bytes used by
// the char code.
virtual int getNextChar(char *s, int len, CharCode *code,
Unicode *u, int uSize, int *uLen,
double *dx, double *dy, double *ox, double
*oy) = 0;
It looks like:
the Unicode is a ** instead of a * (not sure, I have to look again on
k&r & Stroustrup books as I didn't coded for long time)
the int uSize is missing in the function call.
Regards.
Olivier
15 years, 2 months
lpe vonkoch
by jf barraud
Hi!
I did separate the "reference path" and the "generating path" in
lpe-vonkoch.
I think it makes the UI more clear, but it changes previous conventions of
course (the last segment of the old generating path should be cut/pasted
into the new "generating path").
Caution: this might change again. As it is supposed to contain only one
segment, the "reference path" could/should be replaced by 2 points (on the
other hand, it might be more convenient to be able to move both points at
once, copy/paste that segment, etc..., so I'm not sure what's the best
here).
I also modified the tooltips, and parameter order, trying to follow your
remarks. Thank you Alexandre P. and joncruz. Please review it again...
Bye, JF.
15 years, 2 months
website
by Alexandre Prokoudine
Hi,
Could we please have the website fixed?
./publish_web.sh does grab new stuff from SVN, but chnages on website
do not appear. That's been happening for last couple of months.
Alexandre
15 years, 2 months
Fwd: NEW: Lots of stuff
by Pajarico
>> And even with that, it still doesn't recover
>> zoom position. 3 works but ` doesn't. Maybe I'm doing something wrong.
>> The equivalent menu option "Previous zoom" works, thought.
>
> Most likely your keyboard just issues some other keycode on pressing
> this key. Again, it's only you who can investigate that and propose a
> fix.
>
How can I check this?
>> Actually a switch key would work better. Like push 3 for zoom in, push 3
>> again to zoom back. I don't like the idea of keeping Q stroked.
>
> That wouldn't work. We have much more zoom keys - 1, 2, 3, 4 etc all
> have their functions. Not everyone zooms in with the intention to zoom
> back again. If you want to zoom to selection _again_ and instead it
> zooms you out to some previous zoom, it wouldn't be good usability.
Maybe I didn't explain it correctly... I don't intend this to replace
the zoom to
selection button. Rather this is a new mode which would zoom in when pressed and
zoom out when pressed again. The zoom in level would be detrmined by
the largest
zoom factor used on the last action, and the zoom out level would be
determined by the
smallest zoom factor used for a determined period of time (to avoid
setting a zoom
out level accidentally while zooming out with the wheel/zoom tool).
The workflow would be like this:
1. You have an object and zoom in and do some fine tuning on the nodes.
The zoom in factor is determined (and the zoom position).
2. You zoom back and stare at the changes for a while. In this short period of
time the zoom out factor gets determined.
3. Press the key and you go back to zoom in state and do some more tweakings.
4. Press key again and go back to zoom out state. Stare at the editing
and go back
to zoom in if you wish.
Something like this. Would be too cumbersome?
> So, a single key which travels back through your history of zooms is a
> much better solution.
>
That's kinda what I'm looking for... implementation details aside.
Regards.
PS: I'm resending this to inkscape-devel. Sorry bulia.
15 years, 2 months
lpe point/path parameters incompatibility?
by jf barraud
Synopsis:
Choose an lpe having both a point and a path among it's parameters.
Apply it to an object. Node-edit the path parameter.
Exit node-edit mode and move the object around. Inkscape crashes when you
release the mouse.
[
Program received signal SIGSEGV, Segmentation fault.
0x77c17742 in strcmp () from C:\WINDOWS\system32\msvcrt.dll
]
You might complain there is no such lpe in the code base. hmmm. Right. This
is a virtual bug (so very difficult to reproduce!), and the reason why I
submit it here and not in launchpad.
My new version of VonKoch would fit, but I don't want to commit it and get
on all users nerves because of unexpected crashes...
To make it less virtual, take lpe-test-doEffect-stack (an empty effect, good
for testing) .
--------------------
- in lpe-test-doEffect-stack.h, add
#include "live_effects/parameter/path.h"
...
PathParam path;
- in lpe-test-doEffect-stack.cpp, add (in the LPE creator:)
path(_("path param"), "tooltip of path parameter", "path_param", &wr,
this,"M 0,100 100,0")
...
registerParameter( dynamic_cast<Parameter *>(&path) );
--------------------
Is this the correct way to add a path parameter?
When I do so, the bug shows up. If I comment out every thing about either
the point or the path parameter, it works fine. When both are present it
crashes (adding a redefinition of the path in a resetDefaults() function
does not help)
Am I missing something? any help/confirm/invalidate appreciated!
Inkscapely yours, JF.
15 years, 2 months
cmyk support in Inkscape/Cairo
by Felipe Sanches
what is the current status of cmyk support in inkscape? what about
cmyk in cairo?
I have a friend working on brazillian government and they seem to be
interested in paying some brazillian developers to put some effort on
cmyk support in inkscape
Any suggestions about what should be preferably done?
Would it be better to focus on cairo cmyk development?
Which cmyk features are needed and currently not implemented?
JucaBlues
(Inkscape)
15 years, 2 months
bbox not correctly calculated
by the Adib
Buliabyak,
I refer to https://bugs.launchpad.net/inkscape/+bug/273767
If you select the shape in the attached file you get marker of a huge
bounding box.
It calculates a width of 83111 and a height of 18847. The calculated
space for the image can not be given.
BTW The same crash you get when you want to convert the object to bitmap.
Despite the problem that it not properly handles NULL pointer after the g_new,
could you please evaluate WHY it tells this huge bounding box?
Regards,
Adib.
---
15 years, 2 months
Stand alone inkscape version for servers
by Bassel Safadi
Hello folks,
we are trying to include the functionality of converting svg files to png in
our web content management system ( ccHost ) mostly for ( openclipart.org ),
I tried every possible solution using imagemagick and GD, but nothing did
the job as of inkscape, so we decided to actually use inkscape for that (
below the php function that do this ), that cleared the biggest problem, but
still have another one: inkscape have a GUI that means a lot of stuff needed
to be installed on a "web server " to get inkscape running, but we are using
inkscape from the command line and we don't need all that fancy GUI things..
So can you please help us shipping ( or doing this if possible for us ) a
stand alone ( one file only ) copy of inkscape without GUI, just the command
line,
in case we got a one file inkscape binary we can use in a lot of content
management systems to actually add the functionality of converting and
handling SVG files
it will be great if some one can do it, we need such thing a lot
Thank you all in advance.
Best regards,
Bassel Safadi
_______________________________________
php function that can handle svg to png converting using inkscape:
function convert_svg_png($path_to_inkscape, $svg_default_background,
$images_path, $filename){
$filenamepng = str_replace(".svg", ".png", $filename);
//check if inkscape is exists
exec("".$path_to_inkscape."inkscape -V", $checkversion);
if ($checkversion[0]){
exec("".$path_to_inkscape."inkscape -e ".$images_path.$filenamepng."
".$images_path.$filename." --export-background=".$svg_default_background."",
$output);
}else{
$output = "<b>Fatel Error: </b>Can't find (inkscape)";
}
return $output;
}
15 years, 2 months