You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

You can use SVG images in your text boxes and as background. There are a few things to be aware of to ensure that TARGIT can show the SVG file correctly.

Namespace

To ensure valid SVG, there has to be defined a namespace: 

<svg xmlns="http://www.w3.org/2000/svg" preserveaspectratio="xMidyMid meet" id="Layer_1" viewBox="0 0 400 120">

Aspect Ratio

For browser scaling purposes, preserveaspectratio should always be added to the <svg> tag with the xMidyMid meet value:

<svg xmlns="http://www.w3.org/2000/svg" preserveaspectratio="xMidyMid meet" id="Layer_1" viewBox="0 0 400 120">
  • No labels