Jump to content
You must now use your email address to sign in [click for more info] ×

Search the Community

Showing results for tags 'AF-636'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Affinity Support
    • News and Information
    • Frequently Asked Questions
    • Affinity Support & Questions
    • Feedback & Suggestions
  • Learn and Share
    • Tutorials (Staff and Customer Created Tutorials)
    • Share your work
    • Resources
  • Bug Reporting
    • V2 Bugs found on macOS
    • V2 Bugs found on Windows
    • V2 Bugs found on iPad
    • Reports of Bugs in Affinity Version 1 applications
  • Beta Software Forums
    • 2.5 Beta New Features and Improvements
    • Other New Bugs and Issues in the Betas
    • Beta Software Program Members Area
    • [ARCHIVE] Reports from earlier Affinity betas

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL



Member Title

Found 10 results

  1. I happened to stumble upon an SVG file from Wikipedia, that does not open correctly in Affinity Desiger. Note that the same file opened correctly in Inkscape Here is the link: https://upload.wikimedia.org/wikipedia/commons/c/c6/Energy_density.svg?download In the file all the text are really curves, one curve for each character. In inkscape the text appears as seen on wikipedia site. On the other side in Affinity designer, all characters of the same text are overlapped in the same place, like: I am using the Beta version of the program (Beta) on WIndows 11 Pro 23H2 Os Build 22631.3593 Hope this helps. Regards. Mau.
  2. Hello, I am trying to modify a figure I made using a Python script, and affinity designer does not open the svg file well. All the text is stacked. I am on windows 10. I saved my figure using plt.savefig('figure_name.svg', format='svg') The problem is not the svg, as it is opening well in Inkscape. Any solution ?
  3. Hi, There appears to be a bug in the SVG import process, specifically when using clones and applying scaling & translations. I noticed this following a change in how Matplotlib in Python exports SVGs - since this change, text characters end up on top of one another rather than being spaced apart when imported into AD. There are no problems importing into Inkscape, Chrome, etc. Here is a minimal example, with a lowercase L followed by a dash (the SVG file to recreate this is attached). This is how it (correctly) appears when imported into Inkscape. And this is how it appears imported into AD. The problem seems to lie in the application of x/y positioning to clones when importing into AD. When the paths themselves are scaled (in this example by 0.015625), the X offset is applied before the scaling rather than after, meaning the X offset of the characters is 0.015625 times what it should be. Everything is fine if the "x" value is replaced by an equivalent translation. # This doesn't work <use x="27.783203" xlink:href="#DejaVuSans-45"/> # This works, replacing the "x" argument with a translation <use transform="translate(27.783203 0)" xlink:href="#DejaVuSans-45"/> More discussion related to this issue can be found in this thread. Thanks!
  4. I'm using Designer Version 2.5.0 How to reproduce: Create any plot using Matplotlib in Python that contains text Save the plot as SVG (see attached example SVG) Open SVG file in Affinity Designer The attached svg file imports incorrectly into Affinity. The attached png file shows the difference between importing into Affinity and any other software I have that opens SVGs (e.g. firefox, Mac preview, etc) I have a work-around that uses the cairo backend for plotting, but that's very inconvenient. I think a lot of researchers are using Affinity for their work, and having correct SVG parsing would make their lives much easier. Python script that produces the figure: import matplotlib.pyplot as plt import numpy as np # Create data np.random.seed(0) x = np.arange(10) y = x + np.random.rand(10)*1.5 plt.scatter(x, y) plt.text(1, 8, 'Demo Text', fontsize=12) plt.xlabel('X-axis') plt.ylabel('Y-axis') plt.title('Demo plot with text') # Save the plot as an SVG file using regular matplotlib backend: plt.savefig("demo_matplotlib_svg_import_bug.svg", format='svg') demo_matplotlib_svg_import_bug.svg
  5. Hi all, Id like to know how to fix this issue about the visualisation of SVG files generated by python. thanks for your support and help!
  6. Hi, Love Affinity Designer. This is an issue when importing SVG files. In SVG, a common method for centreing text in a box is to use percentage values for X and Y attributes of the <text> element. The same method also uses the "dominant-baseline" attribute. See the small enclosed example to show the technique. It is unfortunate that SVGs that use these attributes do not currently import into AD correctly (but do import into browsers and Inkscape correctly). The text is not centred in the box at all. centre.svg It would be a useful enhancement to support these attributes. Perhaps this one could be quick/fairly easy to resolve, knocking another issue off the list?
  7. svg file displays properly on image management software Misaligned text in Designer 2.3.0 This is the svg displayed normally, and the Chinese characters are displayed correctly. Chinese characters overlap in Designer 北语字频曲线.svg
  8. When importing SVG graphics into Affinity Designer that do contain text, the positioning of characters is all over the place but not how it should be. As an example I attached a SVG file of a graph generated by python and matplotlib. The graph should look like this But if opened in Designer it looks like this (original svg file is attached as matplotlib_graph.svg). The macOS file previewer and other programs have no problem displaying the file correctly. Similar things appear if I export drawings from Designer to SVG that do contain text. Here is an example Graph in Affintiy Designer: And corresponding SVG file as displayed with other Mac apps: By the way I'm using Affinity Designer 2.3.0 which should be the most recent version. I also attached the original svg files. Hope that helps. matplotlib_graph.svg affintity_svg_export_bug.svg
  9. Description of bugs: Text in imported SVG documents is not rendered in the correct size or font family if the font was specified using the shorthand "font" property (eg "font: 10pt 'Arial'"), and font sizes seem to always be interpreted in points even if "px" units are specified. Use case: I like to use Affinity Designer to make manual adjustments to scientific figures generated using the popular Python plotting library Matplotlib and saved as SVGs. It so happens that Matplotlib writes font information using the "font" property rather than "font-size" and "font-family". Affinity Designer is fantastic but has long had issues with rendering text from SVG files created by Matplotlib, so I often end up having to either save the SVG text as paths (making it non-editable) or save my figures as PNGs and use Affinity only for arranging them. I know at least a few people who are currently using Inkscape (which doesn't have this bug) and would consider switching to Affinity if this issue were fixed. To reproduce: Open the minimal SVG file below in Affinity Designer and in a web browser. (See screenshots below; the one with consistent font sizes is from Firefox 106.0.5 and the other is from Affinity.) <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE svg> <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="200pt" height="125pt" viewBox="0 0 200 125" xmlns="http://www.w3.org/2000/svg" version="1.1"> <text x="0" y="15" style="font: 7.5pt 'Arial'">font: 7.5pt 'Arial'</text> <text x="0" y="30" style="font: 10px 'Arial'">font: 10px 'Arial'</text> <text x="0" y="45" style="font: 7.5pt 'Helvetica'">font: 7.5pt 'Helvetica'</text> <text x="0" y="60" style="font: 10px 'Helvetica'">font: 10px 'Helvetica'</text> <text x="0" y="75" style="font-size: 7.5pt; font-family: 'Arial'">font-size: 7.5pt; font-family: 'Arial'</text> <text x="0" y="90" style="font-size: 10px; font-family: 'Arial'">font-size: 10px; font-family: 'Arial'</text> <text x="0" y="105" style="font-size: 7.5pt; font-family: 'Helvetica'">font-size: 7.5pt; font-family: 'Helvetica'</text> <text x="0" y="120" style="font-size: 10px; font-family: 'Helvetica'">font-size: 10px; font-family: 'Helvetica'</text> </svg> To test compatibility with Matplotlib directly, here's a minimal Python script. The screenshots are again from Firefox and Affinity. import matplotlib as mpl import matplotlib.pyplot as plt # Export text as regular text instead of paths or using svgfonts mpl.rcParams['svg.fonttype'] = 'none' # Set font to a widely-available but non-default font to show that Affinity # ignores font-family mpl.rcParams['font.family'] = 'sans-serif' mpl.rcParams['font.sans-serif'] = 'Helvetica' # Make the figure 1in x 0.75in so that incorrect font sizes in Affinity are # very obvious (text will badly overflow). plt.figure(figsize=(1, 0.75)) plt.plot([1, 2, 3], [2, 1, 1], label='My line') plt.ylabel('Y-axis label') plt.xlabel('X-axis label') plt.legend(loc='upper left', bbox_to_anchor=(1, 1)) plt.savefig('matplotlib-demo.svg', bbox_inches='tight') System information: MacOS 10.15.7 on Intel Macbook Pro Affinity Designer 2.0.0 Turning hardware acceleration on and off doesn't affect problem No unusual hardware or software
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.