font problem - SVG to EPS or PDF working only as root user
by Alexander Bonivento
Hello Inkscape users,
I'm having a strange issue i help you'll be able to help me fix.
I'm currently using both inkscape 0.46 and 0.47 r22583, on two distinct linux servers.
I'm using it as a commandline tool, to convert vector files for an online application i'm developing.
The problem is simple. I have command lines like these:
/usr/bin/inkscape -z file.svg --export-eps=file.eps --export-text-to-path
/usr/bin/inkscape -z file.svg --export-pdf=file.pdf --export-text-to-path
If these commands are executed in shell as root, all is fine.
But if executed via PHP "exec()" function, so as user Apache as i need it, the generated EPS or PDF files are created but without the correct font.
Please note that i execute in cron every day the command "fc-cache -f /usr/share/fonts/ttf", and /usr/share/fonts/ttf contains all of the fonts i need.
It behaves just like the Apache user cannot access the system fonts library... so strange.
Moreover, with a previous version of inkscape all was fine. So i'm just afraid there's something i need to set up at system level to grant Apache user access to system fonts by using inkscape.
Any idea about what could cause this?
Just to provide some more info, here is an example of the SVG file i'm trying to convert, which basically is just a stroked text.
<svg width="24in" height="24in" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="0" y="0" width="24" height="24" style="fill: none;" />
<g transform="translate(12,12)">
<text id="text_3_1_check_s" transform="translate(0,0)" style=" text-anchor:start; font-size: 1; font-family: 'Unicorn'; fill: #E3478C; fill-opacity: 1; stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: 1; stroke-width: 0.027777777777778;">918-542-5348</text>
<text id="text_3_1_check" transform="translate(0,0)" style=" text-anchor:start; font-size: 1; font-family: 'Unicorn'; fill: #E3478C; fill-opacity: 1;">918-542-5348</text>
</g>
</svg>
Thanks in advance,
Alex
12 years, 11 months
import several images
by Haldun ALTAN
Hello,
I don't know the exact name to call it but I need to import a group of
images (sometimes more then 100) to make some animation with inkscape.
Each image has to be on a différent layer. At the end I export them in
.png format to load in cinelerra.
I made some rechearh on the net, the only thing i found is
http://mutins.net/spip.php?article285 ( in french)
But the script wasn't done exactly for what i want to do. I need to copy
images to the layers to work on them individually. They all stuck in the
same page and loose the link when i copy paste on layers. ( Well that's
what for the script is written for !... So normal)
Has any one some idea to help me out ?
Thanks
Haldun.
12 years, 11 months
Missing fonts in Inkscape
by Tőkés Ábel
Hi all,
My problem is that although I have several (10) members of Neo Tech font
family, and most of the applications can use them, Inkscape sees only
two of them. Actually, these two were modified. Do anyone know about a
possible reason? I have Windows XP SP3, I have just installed Inkscape
0.48 (I had 0.44 previously with the same failure).
Background: Although Inkscape has been on my computer for years, I
didn't use it, because I have Corel too and it seemed more convenient. I
work for a producing company (Semilab), and we used to give the labeling
of our equipments to screen-printing companies. The designs that are
screen-printed are given to these companies in .cdr files. We are
thinking about changing from Corel to Inkscape for this purpose, as the
number of copies of Corel we have is limited, there are incompatibility
problems between versions, and Corel is expensive. But we can do this
only if Inkscape is equal to Corel in performance in the limited way we
use it. This doesn't seem to me a very strict criterion, as we do very
basic things (typing, drawing basic shapes, our logo), but includes
using all Neo Tech fonts we have.
Thank you
Abel
12 years, 12 months
Re: [Inkscape-user] CMYK output.
by Guillermo Espertino
You have to attach a CMYK icc profile first (I'm not sure if it's a
requirement, but if I remember correctly you have to save and reload
in order to apply it).
Then, going to CMS tab in the fill/stroke dialog you can set the CMYK values.
The resulting SVG file can be opened (mostly) in Scribus 1.5.0trunk,
and the CMYK values will be preserved (you can check in the colors
dialog, that the imported colors are in CMYK mode instead of RGB as a
regular SVG).
Scribus doesn't fully support Inkscape SVGs yet, but as far as I know
that's already on the works (you can tell by trying Scribus nightlies,
SVG support has been improved a lot).
12 years, 12 months
CMYK output.
by John Culleton
I know that it is possible to describe spot colors in Inkscape using
CMYK notation. But is it possible to produce any form of output file
with the colors specified in the file itself using CMYK notation?
Candidate output formats would be pdf, eps, or tiff.
--
John Culleton
Wexford Press
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.booklocker.com/books/4055.html
12 years, 12 months
exporting
by Jannetta Steyn
Hi All
I have done a few Google searches but didn't come up with quite what I want,
so I'm hoping there is someone out there that can point me in the right
direction.
I am making some animations, probably in a long winded way, but for now that
is all I know and I have limited time in which to do it. I have drawn every
frame on a different layer, with the first layer being the background.
Initially I exported to gif by switching on the first (background) layer and
the layer of the frame that I want exported and then doing the export. Then
I discovered the inkscape command line and with a script I can now export
several layers one after another. However, I have not figured out how to
export two layers to one gif so I have had to copy the background to each
layer.
For the export I use the following command line instruction in my script:
inkscape --export-png=${1}-${i}.png --export-id=${i} --export-id-only
--export-dpi=400 --export-area-page --export-background-opacity=1 ${1}.svg
However, this off course will only export the layer with an object id of
${i}. (I number my layers in starting at 001 and incrementing by 1 so that I
can loop in a script).
Is there a way of more than one layer so that I can export layer 000 (the
background) and another layer so that I don't have to copy the background
onto each layer.
Any help would be greatly appreciated.
Kind Regards
Jannetta
===================================
Web site: http://www.jannetta.com
Email: jannetta@...2761...
===================================
13 years