Peter Aschbacher Posted November 5, 2024 Posted November 5, 2024 (edited) This SVG document containing an Unicode emoji character as text cannot be loaded in Affinity Designer 2.5.5 in Windows 11 (although it can opened without problems in any browser, e.g. Edge): <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"> <!-- Optional background for visibility --> <!-- <rect width="100%" height="100%" fill="#fff" /> --> <text x="50%" y="50%" font-size="100" font-family="Segoe UI Emoji, Apple Color Emoji, Noto Color Emoji, sans-serif" text-anchor="middle" alignment-baseline="middle"> 😋 </text> </svg> It also seems the emoji character is not centered in the SVG. How can it be centered? Food.zip Edited November 5, 2024 by Peter Aschbacher Quote
David in Яuislip Posted November 5, 2024 Posted November 5, 2024 Affinity svg parser is not the best, opening a file in a browser is not much help, the browsers tend to understand everything <text x="50%" y="50%" these need to be pixels text-anchor="middle" not recognised alignment-baseline="middle"> not recognised Try placing that emoji in an Affinity document, export to svg and see what it produces eg <svg width="100%" height="100%" viewBox="0 0 834 834" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <text x="130.615px" y="563.558px" style="font-family:'SegoeUIEmoji', 'Segoe UI Emoji', sans-serif;font-size:416.667px;">😋</text> Quote Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10
mopperle Posted November 5, 2024 Posted November 5, 2024 I think the problem is the font. As you see, the emoji in your post looks totally different as when you open your posted svg file in a browser. Attached two SVGs with a textelement (as yours) and one with graphic elements (crircles). test2.svg test1.svg Quote Regards, Otto Affinity Suite v2.6.x - Windows 11 Pro
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.