Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1

    Default Font embed inside SVG export

    Hi again today

    I have a totally blank document with zero elements inside. The page background is also hidden.

    When I export this document and inspect the svg there is an external Google font embed added.

    How am I able to remove this from my SVG export?

    Example document:

    example_doc_font_embed.xar

    SVG export code:

    HTML Code:
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
    <!--Generator: Xara Designer (www.xara.com), SVG filter version: 6.7.0.0-->
    <svg fill="none" fill-rule="evenodd" stroke="black" stroke-width="0.501" stroke-linejoin="bevel" stroke-miterlimit="10" font-family="Times New Roman" font-size="16" style="font-variant-ligatures:none" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" overflow="visible" width="1875pt" height="2860.5pt" viewBox="0 -2860.5 1875 2860.5">
     <defs>
      <style type="text/css">@import url('https://themes.googleusercontent.com/fonts/css?family=Open Sans:400,600');</style>
     </defs>
    </svg>
    (See @import url line):

    `<style type="text/css">@import url('https://themes.googleusercontent.com/fonts/css?family=Open Sans:400,600');</style>`

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    18,448

    Default Re: Font embed inside SVG export

    FTL, no SVG settings in Xara for this.
    You can post process through https://jakearchibald.github.io/svgomg/ with all options on and get:
    Code:
    <svg fill="none" fill-rule="evenodd" stroke="#000" stroke-linejoin="bevel" stroke-miterlimit="10" stroke-width=".5" font-family="Times New Roman" font-size="16" overflow="visible" style="font-variant-ligatures:none" viewBox="0 -2860.5 1875 2860.5"/>
    I would have though as <def> is not referenced there is no fetch made but it might be as I already have the font.
    So I retried with Advent Pro and I could see no action. Dropping it back into Xara just created @import calls in its CSS file...

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3

    Default Re: Font embed inside SVG export

    I forgot to reply sorry, thank you so much for this. As long as the call isn't made then I don't mind it being there. I guess a check for a text element would be good and to remove it if not but I just bought perpetual so I guess I won't get it if it is added. The old version of Xara I was on (2017) didn't have any font imports so this was a new change for me. It irks me a bit but no big deal

    Thanks for your help.

    Jack

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •