10 June 2012

RSVG-Convert SVG image conversion tool

LibRSVG is probably one of well known svg library (other is Batik), the library use libcairo for pdf,ps and svg backend. This is a convenient static build of RSVG-Convert (part of librsvg 2.34.2) compiled with MinGW. I made this since originally the executable would dragged many dependencies.

The command line also used by ImageMagick through delegates although being deprecated (the rsvg wrapper), currently rsvg-convert.exe support png, ps, pdf and xml output but not jpg.

use "rsvg-convert --help" to see its command options, notice that the default output is stdout so be sure to specify file output.

Download:
rsvg-convert-2.40.20.7z  (30-12-2017) with fontconfig support ( use with environment variable PANGOCAIRO_BACKEND=fc )

note: embedded images now displayed (broken in previous builds), now support jpg, gif, png, svg, tiff, wmf, emf, ico,  images mime type aliases also added.



109 comments:

  1. Hello,
    i've got some warning using your tool :
    (rsvg-convert.exe:12340): Pango-WARNING **: error opening config file 'E:/msys/MSYS/local/rsvg/etc/pango\pangorc': Permission denied

    and some error about fonts :
    (rsvg-convert.exe:12340): Pango-WARNING **: couldn't load font "MS Shell Dlg Not-Rotated 2.439453125", falling back to "Sans Not-Rotated 2.439453125", expect ugly output.

    (rsvg-convert.exe:12340): Pango-WARNING **: couldn't load font "MS Shell Dlg Not-Rotated 2.7998046875", falling back to "Sans Not-Rotated 2.7998046875", expect ugly output.

    (rsvg-convert.exe:12340): Pango-WARNING **: couldn't load font "MS Shell Dlg Not-Rotated 2.9677734375", falling back to "Sans Not-Rotated 2.9677734375", expect ugly output.

    (rsvg-convert.exe:12340): Pango-WARNING **: couldn't load font "MS Shell Dlg Not-Rotated 2.8154296875", falling back to "Sans Not-Rotated 2.8154296875", expect ugly output.

    (rsvg-convert.exe:12340): Pango-WARNING **: couldn't load font "MS Shell Dlg Not-Rotated 2.8798828125", falling back to "Sans Not-Rotated 2.8798828125", expect ugly output.

    Anyway, your tool works well, thank you !
    Thierry

    ReplyDelete
    Replies
    1. the first error message are harmless it's not needed for windows, the warnings also generally can be ignored. But if you concerned (your text output not looking good). Try download this http://osspack32.googlecode.com/files/fontconfig.7z extract it to where you have rsvg and execute fc-cache (it will cache your whole windows's fonts), it may takes time to finished. Then try again rsvg

      note: I'm not sure whether my previous build has fontconfig support, so I updated it (version 2.36.1) as the same link in original post. try redownload

      Delete
    2. hello can anyone help me.

      How to install this tool in windows 10 and how to use this tool to make the PDF in inkscape ??

      I try to install .exe file but it open the cmd and then do nothing.

      please Help me.

      Delete
  2. Hello,
    your update remove the first error, thank you !
    For the others, the text output seems ok, so I keep the actual fonts, but in case of, I will apply your solution.
    Regards
    Thierry

    ReplyDelete
  3. Hi TumaGonx Zakkum,

    Thank you very much for this static build. I wish you could keep it up to date.

    ReplyDelete
  4. Really useful, thanks! I'm having incompatibility issues between MediaWiki (librsvg) and Inkscape, and this allows me to test out my changes without needing to keep re-uploading duff images to MediaWiki.

    ReplyDelete
    Replies
    1. maybe you just need rsvg-viewer? http://osspack32.googlecode.com/files/rsvg-view-3.exe
      drag n drop svg on it or associate it with svg

      Delete
    2. Interesting, thanks. Only snag is, the window doesn't open to the size of the document, and twice within the last few minutes I've crashed the program simply enlarging the size of the window using the size grip. (Windows 8 Pro)

      Certainly easier than repeatedly saving to PNG though :)

      (PS your OpenID system doesn't work. "Your OpenID credentials could not be verified. Makes no effort to actually check; it just can't be bothered, and gives up.)

      Delete
    3. Have you downloaded the latest (same link)? the not open to size issue have been fixed AFAIK.

      About the openID, i'm not sure if I can do anything about it, I think it's part of blogspot? Sorry about it

      Delete
    4. Ah yes, on some svgs there is 20-30px missing from the window. Can't confirm about windows 8 crash though

      Delete
    5. Same crash in XP SP3 32-bit:

      http://telcontar.net/store/hosted/bugs/rsvg-view_crash.png

      Randomly crashes when enlarging the window, as you can see from the above. Might be image dependent. You can contact me via my website if you want me to try test builds etc.

      Delete
    6. Maybe because I'm not enabling "Show windows contents while dragging" desktop setting. But still, this is a bug (for GTK-3)

      Delete
    7. The crash in rsvg-view-3.exe is caused by the window being too narrow for the toolbar. (I've not triggered the crash in a long time, but I decided to see if I could work out what the cause is).

      If you resize the window smaller and smaller, it will crash at the instant that the window width is narrower than the total width of the toolbar buttons, i.e. when the Zoom Out button starts to disappear off the edge of the window.

      I think I was triggering it with very small SVG images at the time.

      (Note that I am now in Windows 8.1 Pro 64-bit, not XP.)

      Delete
  5. Thanks. Very useful.

    ReplyDelete
  6. thank you very much! long ago I was looking for svg to png converter, it is best to have a few kb

    ReplyDelete
  7. Hi,

    I've downloaded the exe. When I'm running it, it opens the win cmd and do nothing.

    Any clue?

    ReplyDelete
    Replies
    1. 1. open the commandline "cmd"
      2. CD to the DIR of the EXE
      3. try something like this or what ever you wanted to do:

      rsvg-convert.exe -a -w 500 -f svg INPUT.SVG -o OUTPUT.SVG

      Delete
    2. This comment has been removed by a blog administrator.

      Delete
    3. Getting the Same issue, exe. opens the win cmd and then do nothing.

      So how to solve it in windpws 10.

      anyone please help

      Delete
  8. Hi,

    I tried to get the help as you have mentioned. But i get the following error

    D:\ImageMagick>rsvg-convert.exe -help
    Missing argument for -h

    ReplyDelete
    Replies
    1. notice the commandline use two dash "--help"

      Delete
    2. Thanks for the quick reply.. works like a charm.

      Delete
    3. This comment has been removed by a blog administrator.

      Delete
  9. Awesome tool..

    By the way, I can't convert an eps file using this right?
    when I tried, I am getting
    Error reading SVG:Error domain 1 code 4 on line 1 column 1 of file:///D://eps/Template2.eps: Document is empty

    It clearly says, Error reading SVG. :)

    ReplyDelete
  10. Hi,

    Does this support embedding external images?

    I have an svg file with 'image' tag which was not rendered by this program. All I see in the output is text.

    ReplyDelete
  11. Haven't tried that myself, maybe this help http://stackoverflow.com/questions/2961624/rsvg-doesnt-render-linked-images

    ReplyDelete
  12. I've begun to use rsvg-convert for text-based SVG, and it's wonderful.

    However, my svg has an image embedded in it using the form of:


    image
    height = "100"
    width = "100"
    x = "455"
    xlink:href = "data:;base64,{imageDataInBase64}"
    y = "90"

    My image is not getting into the PDF. Is rsvg-convert unable to process images?

    Help!

    ReplyDelete
  13. Hi,
    Your rasterizing utility is excellent.

    However, I have observed that applying various desired dpi densities in command-line parameters, like this:
    rsvg-convert.exe -d 300 -p 300
    rsvg-convert.exe -d 100 -p 100
    rsvg-convert.exe -d 600 -p 600
    or like this
    rsvg-convert.exe --dpi-x 600 --dpi-y 600
    or even without specifying density which should default to 90:
    rsvg-convert.exe

    HAS NO EFFECT.

    Moreover, the effect is (what I'm verifying by examining obtained raster image geometry comparing with SVG contents) as in all cases, density of 300 dpi has been used.

    Obtained PNG files with various settings are binary identical.

    After some experiments, I've observed that the only method to control effective resolution, is to pass width and height parameters recalculated accordingly. For example, to obtain 600 dpi, it is necessary to pass width and height multiplied twice.

    In my application, I have to keep control over raster image geometry so as to have its content in sync with vectors displayed above, so proper behavior in this matter is for me important.

    May be there is something wrong in the way I pass density parameters?

    Could you explain this behavior, please?

    ReplyDelete
    Replies
    1. Hi Krzysztof,

      Just to clarify I'm not write this app, I just build unofficial win32 executable like all other stuff in this blog.

      I can't help you or confirm this bug at the moment but if you're sure about it, you can filled bugreport to the developer here https://bugzilla.gnome.org/browse.cgi?product=librsvg. They're the right person to talk about it :)

      Delete
    2. Thank you for fast response.
      I've found following issue at bugzilla:

      There is no difference between different DPIs
      https://bugzilla.gnome.org/show_bug.cgi?id=681127

      that seems to point to the same problem, but with no answer.
      I'll try to post my own one.

      Regards,

      Delete
  14. This comment has been removed by the author.

    ReplyDelete
  15. Thx for making this wonderful conversion tool. But I have 2 major issues. 1) When converting to PDF, the opacity value in the or elements are ignored. 2) The conversion fails to apply bold or italic styles for some font such as WenQuanYi Zen Hei (文泉驛正黑).

    ReplyDelete
    Replies
    1. Thanks, librsvg 2.40 released few days ago, will see if I can do something about the bug when updating the win32 binary.

      Delete
    2. Sorry my previous comment was incomplete. For the PDF conversion, I mean the opacity property in "g" and "text" elements are ignored. This isn't the problem when converting to PNG.

      For the bold and italic font, your conversion tool reports that it can't find "WenQuanYi Zen Hei bold" or "WenQuanYi Zen Hei italic", but this problem doesn't exist in Wikimedia which uses the same typeface.

      Delete
  16. Hi, thanks for this. I have the same problem with failure to open 'E:/msys/MSYS/local/rsvg/etc/pango\pangorc': etc but in my case, since E: is my optical drive, I get a while bunch of windows warning dialogs saying "there is no disk in the drive please insert a disk". Not usable in that case. Thanks.

    ReplyDelete
  17. One bug about converting to PDF: it is unable to apply mask (http://www.w3.org/TR/SVG11/masking.html#Masking), but the mask is present while converting to PNG.

    ReplyDelete
  18. I've just sketched a quick icon for the program, but having tried to use Resource Editor to attach my icon, I get:

    Application Error
    Failed to load resource module:.

    I assume that this is caused by the program having zero resources, since I can open Pidgin's EXE just fine, and that's a GTK program.

    I assume that just giving the program a VERSIONINFO resource would be enough to let me insert an icon into it.

    Regards

    Daniel.

    ReplyDelete
    Replies
    1. I use UPX on it. Try to decompress it first before using reshack.

      Delete
    2. No change, though it shouldn't have any effect, bearing in mind that UPX cannot compress resources otherwise VERSIONINFO and icons wouldn't be readable by the shell!

      Delete
    3. Try XN Resource Editor. I've test it, should be OK
      Why it need to decompressed first, is because UPX STILL alter the PE header although by default preserve first icon and etc if a resource editor don't understand the compression method (in this case the newer brute LZMA) it will output invalid PE.

      regards

      Delete
    4. OK, that works, thanks. (Can't be bothered to screw around with the OpenID sign-in again.)

      Delete
  19. As i see, this SVG convesion tool supports converting SVG to PNG, but just wonder whether it supports SVG to JPG now?

    Tags: image conversion tool, convert SVG image

    ReplyDelete
    Replies
    1. It doesn't. You need other converter such imagemagick, but it might be trivial to make it support jpg output via gdkpixbuf though.

      Delete
  20. Cool tool. What a shame that the useful SVG format is not more popular yet! :-(

    ReplyDelete
  21. rsvg-convert seems to not produce valid output when sending to stdout. For instance I seem to get invalid results when calling "rsvg-convert test.svg > test.png" but I do get correct results when calling: "rsvg-convert test.svg --output test2.png"

    Am I doing something wrong? I'd like to use stdout to avoid writing a file to disk when calling it from some code written in GO.

    Thanks,

    James

    ReplyDelete
    Replies
    1. Thanks, it appears that newline LF hex:0A always replaced with CR LF hex:0D0A thus corrupt binary format including PDF. I have reported upstream here: https://bugzilla.gnome.org/show_bug.cgi?id=753596

      Delete
    2. It should be fixed in 2.40.10, please redownload

      Delete
    3. Great! This is working now. Thanks again.

      Delete
  22. Using version 2.40.10 I receive this error and all text turns into tofu:
    http://www.geocities.jp/ifurkend/rsvg_convert_font_error.PNG
    This issue doesn't occur in older version of RSVG-convert.

    ReplyDelete
    Replies
    1. Please read about fontconfig in the notes section on that page carefully

      Delete
  23. Hi there,

    as version 2.40.10 is detected by some virus scanners (I hope as a false positive, see virustotal.com), and 2.40.12 is not, could you please also build a 2.40.12 (or now already 2.40.13) with font-config support?

    Thanks

    ReplyDelete
    Replies
    1. Yeah I knew too it was UPX false positive. I'm thinking of different packaging next time, maybe one big 7z archive for all converters. But updating the whole things need time, I don't know, maybe I can pull something this weekend.

      Delete
    2. Thank you very much for the updated package. Seems to work great.

      Delete
  24. This comment has been removed by the author.

    ReplyDelete
  25. Versions since 2016 have a problem which is not present in the 2014 versions: If you change the width/height of the resultant image, it merely scale up the canvas, but all elements remain unscaled. in the 2015 version, if the resultant image is scaled, all elements are scaled, except texts.

    ReplyDelete
    Replies
    1. Thank you, will try to figure out that. Which version number that works in 2014?

      Delete
    2. my old 2.36.4 version works with both text and graphics but was from 2013

      Delete
    3. At the moment you could try 2.40.10 (in my test it works fine but no fontconfig support)

      Delete
    4. You're right about 2.36.4 and 2.40.10 works for me.

      Delete
  26. Thank you for continuing to build against newer versions, this has proved very useful for me.
    I have tried building static multiple times using different methods & so far they all lead to a spiral of doom and failure.
    I don't suppose to would be willing to share your formula, or at least a few hints?

    ReplyDelete
    Replies
    1. For static build you better use older glib I use 2.28 or 2.34. Newer version is getting harder to work in static build (initialization issue).

      Delete
  27. Hi,
    we are using rsvg converter with windows 2012 and it works fine but it is not working on win 2008 server. It shows some compatibility issues. Can you please help in resolving this ? if there is a separate version for 2008 also its fine by me.
    Thanks
    Prashant

    ReplyDelete
  28. Thank you very much for wonderful (and fast) converter.
    I'll be glad if you accept my piece of code to use your rsvg-convert.exe with Delphi language

    http://pastebin.com/q7UM7YCR

    At moment I was able also to get output using Pipeline (stdout) but not yet to get a conversion using stdin pipleline in windows process.

    When able I will publish free code.

    Thank you very much !!!

    ReplyDelete
  29. When comparing output of rsvg-convert (using specified via cmd params width and height) with export from Inkscape, rsvg-convert produces image with 1-2 pixels less height/width (whatever is smaller), so that edge loos somewhat cut. Maybe it is kinda scaling/conversion problem, that can be fixed on rsvg-convert side?
    Thanks in advance

    ReplyDelete
  30. Hi,
    I have been using rsvg-convert for a while and it's very convenient. Thanks for this tool!

    I'm on Windows 10 64 bit, and I use rsvg-convert to generate a PDF.

    I have a SVG file where rsvg-convert partially fails.
    There are two base64 images in the SVG, and only is shown in the PDF. The PDF export from Inkscape looks ok. I also used this online tool to check the base64 images and they both look alright: https://codebeautify.org/base64-to-image-converter

    The PDF looks good when running rsvg-convert on Linux Mint 64 bit.

    Any idea about what could cause this issue?

    Thanks,
    Giacomo

    ReplyDelete
  31. Hi,

    I'm using the latest version "rsvg-convert-2.40.19.7z (22-11-2017) no fontconfig support" to convert SVG to PDF and encounter the warnings. I did not found any fontconfig for Windows 10 executable for support. Would you mind to help me out? thanks.

    (rsvg-convert.exe:12916): Pango-WARNING **: couldn't load font "'Times New Roman' Bold Not-Rotated 1.3193359375", falling back to "Sans Bold Not-Rotated 1.3193359375", expect ugly output.
    (rsvg-convert.exe:12916): Pango-WARNING **: couldn't load font "'BentonSans Book' Not-Rotated 2.3994140625", falling back to "Sans Not-Rotated 2.3994140625", expect ugly output.
    (rsvg-convert.exe:12916): Pango-WARNING **: couldn't load font "'BentonSans Light' Not-Rotated 1.919921875", falling back to "Sans Not-Rotated 1.919921875", expect ugly output.
    (rsvg-convert.exe:12916): Pango-WARNING **: couldn't load font "'BentonSans Book Italic' Not-Rotated 2.3994140625", falling back to"Sans Not-Rotated 2.3994140625", expect ugly output.
    (rsvg-convert.exe:12916): Pango-WARNING **: couldn't load font "'BentonSans Book' Not-Rotated 1.919921875", falling back to "Sans Not-Rotated 1.919921875", expect ugly output.
    (rsvg-convert.exe:12916): Pango-WARNING **: couldn't load font "'BentonSans Book' Bold Not-Rotated 1.919921875", falling back to "Sans Bold Not-Rotated 1.919921875", expect ugly output.

    ReplyDelete
    Replies
    1. Check the new upload with fontconfig

      Delete
    2. Hi Zakkum,
      Thanks for your quick reply.

      I tried both
      rsvg-convert-2.40.19_FC.7z (2-12-2017) with fontconfig support
      and
      rsvg-convert-2.40.19.7z (22-11-2017) no fontconfig support

      They act in different way other than FC support. rsvg-convert-2.40.19_FC runs well w/o warning but some texts are overlap each other, while rsvg-convert-2.40.19 issues font warnings, but converted PDF looks prefect.

      This is the command I used to convert SVG to PDF:
      rsvg-convert -a -u -d 300 -p 300 --keep-image-data -f pdf -o aa.svg.pdf aa.svg

      Any advise? Thanks.

      Delete
    3. Did FC version use the correct font (benton) compared to non-FC? If so is it appears "bigger" (so that it become overlapped)? fontconfig allow you to control specific font appearance from "etc\fonts\fonts.conf" file see https://wiki.archlinux.org/index.php/font_configuration for examples

      Delete
    4. I cannot recognize the font, but it does not seems "bigger" than expected... they looks normal expect being overlapped..
      please see the screenshots:
      SVG:
      https://ibb.co/edDqxw
      nonFC
      https://ibb.co/i1LsAG
      FC:
      https://ibb.co/goU2AG

      Delete
    5. looks like hinting screw up benton but nonFC use the wrong font (you can see its "serif" looks)

      try add this to your etc\fonts\fonts.conf
      <match target="font">
      <edit name="hinting" mode="assign">
      <bool>false</bool>
      </edit>
      </match>

      see https://wiki.archlinux.org/index.php/font_configuration

      Delete
    6. Hi Zakkum,

      I do not see any change (still overlapping, and some text are still out of the box) after applying the change to etc\fonts\conts.conf using the below version:
      rsvg-convert-2.40.19_FC.7z (2-12-2017) with fontconfig support

      Delete
    7. Update:
      still no luck after applying all 3 sections regarding hinting font following instruction from your URL



      false




      true




      hintnone

      Delete


    8. false




      true




      hintnone

      Delete
    9. was trying to paste the changes but the page does not allow.
      ... I basically applied codes for all 3 sections of below, individually and all together, but no luck.

      Byte-Code Interpreter (BCI)
      Autohinter
      Hintstyle

      Delete
    10. without hinting:
      https://2.bp.blogspot.com/-jv1rbPLgT8U/WiTEVcFIT0I/AAAAAAAABcg/smYTNKxItIwEg2WgEhR-jroqu9CFOWBhACLcBGAs/s1600/wihout_hinting.jpg

      with hinting:
      https://1.bp.blogspot.com/-THK30Y0dYpA/WiTEX43wI3I/AAAAAAAABck/Ej8Q4cr_vDUzvP6oxTPtteCecLM1tcY_gCEwYBhgL/s1600/with_hinting.jpg

      It can't be remain the same, are your properly edit the fonts.conf?

      disabling anti-aliasing will further make it condensed. but loks bad

      Delete
    11. sorry maybe I'm not sensitive in font changing if it occurs but overlapping is obvious after editing the fonts.conf file and redo rsvg-convert as shown in the below screenshot:

      https://ibb.co/hdagLG

      Delete
    12. Just to be sure,
      please paste your fonts.conf in https://pastebin.com/

      Delete
    13. here you go. Thanks for your help

      https://pastebin.com/eqX5UY3e

      Delete
    14. Looks good to me, I put some overrides with sans-serif, maybe more default setting (but with antialias and hinting disabled) :

      https://pastebin.com/Sd57fArC

      If still no good then maybe that's how freetype render benton (Freetype itself is standard for linux), if the original document made by non-linux than sometime like this happen, and with static layout (like that non-flowed fixed box) it's hard to fix.

      Delete
    15. it seems it's the TAB messing up. Instead of giving several space for the TAB, FC version reverse back 4-letter positions which cause overlapping.

      I do not figure out why some text are out of the textbox though.

      Delete
    16. the overrides you gave in last paste does not fix the overlapping issue or being out of textbox issue. sorry

      Delete
    17. regarding to the out-of-textbox issue, my guess is that when FC renders text in a textbox, it does not listen to the width and position of the textbox, instead, it still follows the page size restriction. I have no idea whether it's true or not, just my 2 cents.

      Delete
  32. Strange bug - when converting SVG to PDF with a scale smaller than 0.28, some images ( from clipart) disappear
    Example
    https://drive.google.com/open?id=1n4oocyKmrBW4V4DxRXnWZhYZlgw90PqT

    ReplyDelete
    Replies
    1. Hi, it seems I can't download your files, sometime my browser has issue with gdrive too.

      Delete
  33. I tried rsvg-convert v2.40.20 in Windows 10 and it worked fine for me except for the text font issue. It doesn't seem to read anything from fonts.conf. I set the variable environment PANGO_WIN32_DEBUG=true and watched it load the fonts and it always show the same regardless of what I put in fonts.conf (or deleted it complete). setting variables FONTCONFIG_PATH and FONTCONFIG_FILE also did not help. Do you know why?

    ReplyDelete
    Replies
    1. Opps I forgot to set it as default
      try set PANGOCAIRO_BACKEND=fc

      Delete
    2. Yup. This did the job! It loaded the fonts and created the cache automatically. Thank you very much for the prompt response. Now I can start troubleshooting my missing fonts.

      Delete
  34. How to DISABLE 3d-effect on text for rsvg-convert?
    All browsers and Inkscape rendering solid color.

    https://ibb.co/h0SFzG

    ReplyDelete
    Replies
    1. Do you mean that was svgfilter rendition or text rendering defect? No idea why it is like that. A filter can be be spotted in the svg tag inside.

      is it the same with:
      PANGOCAIRO_BACKEND=fc
      or
      PANGOCAIRO_BACKEND=win32

      Delete
    2. RSVG-rendered picture is different from other engines, I'm trying to get same result.
      There are no filters, only:
      style="font-family...font-size...text-anchor...font-style"

      How to use "PANGOCAIRO_BACKEND=win32"
      command line option? config file line? non-standart SVG attribute?

      Delete
    3. OK so thats not svg filter, PANGOCAIRO_BACKEND=win32 is already the default
      in cmd box type the following before running rsvg-convert:

      SET PANGOCAIRO_BACKEND=fc

      Delete
    4. Darker, but the 3D effect is not completely removed. Brown lines are visible.
      https://ibb.co/ibL7UG

      Delete
  35. Linux build of RSVG-CONVERT has extra option: --base-uri
    github.com/claudiajs/rsvg-convert-aws-lambda-binary

    I want to work with temporary SVG-files into TEMP folder without absolute path to images and svg-clipart files, but now I can only render temp files into "main folder" of project.

    ReplyDelete
    Replies
    1. which version the linux build? I don't think could build version 2.42.x which need rustc which need Win7 which I don't use.

      Delete
  36. Hello TumaGonx Zakkum, thanks for your effort!!!
    I was coping around and faced bad text output when converting to png. Typing in powershell 'SET PANGOCAIRO_BACKEND=fc' to avoid
    font warnings like
    '(rsvg-convert.exe:9488): Pango-WARNING **: couldn't load font "F1 Not-Rotated 0.7998046875", falling back to "Sans Not-Rotated 0.7998046875", expect ugly output.'
    didn't help me :( Text is indeed ugly, any workaround on that?

    ReplyDelete
    Replies
    1. what kind of font is "F1" that installed on your system? otf,ttf? though freetype should support any kind of font.

      Delete
  37. F1 stands for font 1. Means there's a F1.ttf in the same dir with the SVG file.

    ReplyDelete
    Replies
    1. I don't think that's how it (svg or fontconfig) works

      please check fontconfig manual

      the overall workflow is like:
      rsvg -> pango-cairo -> cairo-ft -> fontconfig -> freetype <-> cairo

      Delete
  38. A new strange bug: PDF-rendering with PANGOCAIRO_BACKEND=fc ignore X-coordinate of some elements.

    win32 PDF and fc/win32 PNG wokks fine!
    rsvg-convert-2.40.20
    Examples (SVG, PDF and command line):
    drive.google.com/drive/folders/1n4oocyKmrBW4V4DxRXnWZhYZlgw90PqT

    ReplyDelete
    Replies
    1. I can reproduce, but don't know what cause it. sorry

      Delete
  39. Nice little utility. I found 2.40.20 (also checked 2.40.19) telling "Unknown output format" when using either "xml" or "recording". Those were exactly the formats I was looking for. Do you have any hints or is this a bug?

    ReplyDelete
    Replies
    1. Because I don't enable xml surface in cairo (the default) in recent version

      Delete
  40. Is there a (theoretical) possibility to embed support for "foreignObject"?
    A text with pictures and word-wraping is very necessary.
    SVG2 rendering engine does not exist...

    ReplyDelete
  41. Another bug: converting SVG to SVG (embedding images) add units "pt" to SVG width/heidht and result size changes.
    source1: width="1323" height="2055"
    source2: width="1323px" height="2055px"
    result: width="1323pt" height="2055pt"

    ReplyDelete
  42. Hello,
    I don't know why but when using the utility, to convert a few svgz to a pdf doc, I don't have any text in it. they open correctly in any browser or with adobe svg viewer. perhaps font management has something to do with it. I don't seem to have found any clues in previous messages here, so I'll be glad if someone can come up with any hint!

    ReplyDelete
  43. The very first and most important issue to understand about SVG is the fact that it isn't a proprietary format.

    ReplyDelete
  44. This link is not working anymore.
    http://osspack32.googlecode.com/files/fontconfig.7z

    ReplyDelete