none
Change text in svg programatically RRS feed

  • Question

  • Hello,

    I have some svg's to edit the text they have programmatically. They are all different from each other.

    For example, this is the code of one:

    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
    	 viewBox="0 0 226.8 226.8" style="enable-background:new 0 0 226.8 226.8;" xml:space="preserve">
    <style type="text/css">
    	.st0{fill-rule:evenodd;clip-rule:evenodd;fill:none;}
    	.st1{font-family:'Reman';}
    	.st2{font-size:20.0138px;}
    	.st3{font-size:10.4072px;}
    </style>
    <g>
    	<rect x="41.5" y="93.2" class="st0" width="143.9" height="40"/>
    	<text transform="matrix(1 0 0 1 43.2114 105.8564)"><tspan x="0" y="0" class="st1 st2">Margarida &amp; André</tspan><tspan x="50" y="25.6" class="st1 st3">12-01-2024</tspan></text>
    	<g>
    		<g>
    			<path d="M130.4,78c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1,0.1,0,0.1c0.1,0,0.1,0,0.2,0C130.5,78.1,130.5,78,130.4,78L130.4,78z"/>
    		</g>
    	</g>
    	<g>
    		<g>
    			<g>
    				<g>
    					<path d="M121.4,142.9c18.5,1.3,36.2-4.9,53.6-10.1c4.4-1.3,8.8-2.6,13.4-3.4c4.2-0.7,8.3-1.2,12.4-2.5
    						c3.9-1.2,7.6-3.3,11.2-5.2c3.6-1.9,7-4.1,10.2-6.6c0.1,0,0-0.1-0.1-0.1c-3.5,2.8-7.3,5.1-11.3,7.2c-3.9,2.1-7.8,4.1-12.1,5.2
    						c-3.8,1-7.7,1.4-11.6,2.1c-4.4,0.8-8.7,2.1-13,3.4c-17.2,5.2-34.5,11.1-52.7,9.8C121.4,142.8,121.4,142.9,121.4,142.9
    						L121.4,142.9z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M145,141c6.8-2.5,12.2-8.9,16-14.8c0-0.1-0.1-0.1-0.1-0.1C157.2,132,151.8,138.4,145,141C145,140.9,145,141,145,141
    						L145,141z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M170.2,134.4c1.3,0.7,2.5,0.5,3.9,0.6c2.5,0.2,4.7,1.3,6.8,2.5c3.3,2,6.3,4.4,10,5.6c0.1,0,0.1-0.1,0-0.1
    						c-4-1.3-7.1-3.9-10.7-6c-1.3-0.7-2.7-1.4-4.2-1.8C174.3,134.6,172.1,135.2,170.2,134.4C170.2,134.2,170.2,134.3,170.2,134.4
    						L170.2,134.4z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M202.2,126.4c5.3-2.9,7.6-9.4,11.1-13.9c0-0.1,0-0.1-0.1-0.1C209.7,117,207.5,123.5,202.2,126.4
    						C202.1,126.4,202.1,126.5,202.2,126.4L202.2,126.4z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M191,129.2c4.3,0.8,7.4,11,12.5,6.2c0,0,0-0.1,0-0.1c-1.2-0.3-2.6-0.5-3.7-1.2c-1.5-1-2-2.7-3.1-4
    						c-1-1.2-2.1-1.6-3.6-1.4c-0.1,0,0,0.1,0,0.1c4-0.6,4.2,4.2,7.1,5.7c0.6,0.3,2.3,0.4,2.6,0.8c0.6,0.8-0.8,1.2-1.3,1.3
    						c-0.9,0.2-1.6,0-2.4-0.4C196,134.6,194.5,129.8,191,129.2C190.9,129.1,190.9,129.2,191,129.2L191,129.2z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M154.5,138.9c4.3,0.8,7.4,11,12.5,6.2c0,0,0-0.1,0-0.1c-1.2-0.3-2.6-0.5-3.7-1.2c-1.5-1-2.1-2.7-3.1-4.1
    						c-1-1.3-2-1.8-3.6-1.5c-0.1,0,0,0.1,0,0.1c4-0.6,4.2,4.4,7.1,5.9c0.6,0.3,2.3,0.4,2.6,0.8c0.6,0.8-0.8,1.2-1.3,1.3
    						c-0.9,0.2-1.6,0-2.4-0.4C159.5,144.2,158,139.4,154.5,138.9C154.4,138.7,154.4,138.8,154.5,138.9L154.5,138.9z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M182,131.1c1.5-1.1,1.9-3,2.4-4.6c0.5-1.5,1-3,1.9-4.3c0.6-0.8,1.3-1.6,2.1-2.1c0.4-0.3,2.1-1.1,1.7-0.6
    						c-0.5,0.6-1.3,1-1.8,1.6c-0.6,0.7-1,1.6-1.3,2.5c-1,2.3-1.5,4.7-2.8,6.9c0,0.1,0.1,0.1,0.1,0.1c2.3-3.7,2.2-9.3,6.7-11.3
    						c0,0,0-0.1,0-0.1c-2,0.3-3.5,1.4-4.7,3C184.4,124.6,184.5,129,182,131.1C181.9,131,182,131.1,182,131.1L182,131.1z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M213,121.5c2.3-0.5,3.8,3.5,5.9,4c1.8,0.5,3.5-0.5,4.8-1.6c0,0,0-0.1-0.1-0.1c-4.2,2.2-5.4-2.6-8.6-3.9
    						c-0.1,0-0.1,0.1,0,0.1c2.6,1.1,4,5.1,7.2,4.5c0.1,0,1-0.3,0.9-0.3c0.1,0.4-2.3,1.3-2.4,1.3c-2.1,0.5-3.5-0.8-4.8-2.2
    						C215.2,122.2,214.4,121.1,213,121.5C212.9,121.4,212.9,121.5,213,121.5L213,121.5z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M191.1,143c0.5-0.8,1.3-1.2,2.2-1.1c0.4,0,2.1,0.5,2,1c-0.1,0.5-1.5,0.7-1.9,0.7C192.6,143.7,191.5,143.8,191.1,143
    						C191.2,142.9,191.1,143,191.1,143c0.7,1.5,3.5,0.6,4.4-0.1c0,0,0-0.1,0-0.1C194.3,141.6,192,141.3,191.1,143
    						C191,143,191.1,143.1,191.1,143L191.1,143z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M190.7,143.3c1.1,0.1,1.3,1.7,1.4,2.5c0,0.4,0.3,2.5-0.1,2.7c-0.3,0.2-1-1.6-1-2c-0.3-1-0.6-2.2-0.2-3.1
    						C190.8,143.3,190.7,143.3,190.7,143.3c-0.7,1.5,0.1,4.3,1.3,5.4c0,0,0.1,0,0.1,0C192.4,147.4,192.7,143.4,190.7,143.3
    						C190.7,143.2,190.7,143.3,190.7,143.3L190.7,143.3z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M193,143.9c0.2,0.3,0.4,0.7,0.5,1c0.1,0.5-0.3,0.7-0.7,0.6c-0.1,0-0.2-0.1-0.4,0c-0.1,0,0,0.1,0,0.1
    						c0.5-0.1,1.1,0.4,1.2-0.4C193.7,144.8,193.4,144.2,193,143.9C193.1,143.8,193,143.8,193,143.9L193,143.9z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M161.1,125.8c-1-0.7-0.7-2.5-0.5-3.5c0.1-0.4,0.2-0.9,0.3-1.3c0.1-0.3,0.3-1.2,0.5-0.9c0.4,0.5,0.3,2,0.3,2.6
    						c0,0.9,0,2.2-0.6,3C161.1,125.8,161.1,125.8,161.1,125.8c0.7-0.8,0.7-2,0.7-2.9c0-1,0-2.2-0.4-3.2c0,0-0.1,0-0.1,0
    						C160.6,121.1,159.5,124.7,161.1,125.8C161.1,125.9,161.2,125.9,161.1,125.8L161.1,125.8z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M161.3,126.2c0.1-1.2,1-2.1,1.9-2.7c0.4-0.2,0.7-0.4,1.1-0.5c0.3-0.1,0.8-0.3,0.8,0c0,0.3-0.5,0.8-0.7,1
    						c-0.3,0.3-0.5,0.6-0.8,0.9C163.2,125.4,162.1,126.5,161.3,126.2C161.3,126.1,161.3,126.2,161.3,126.2c0.7,0.3,1.5-0.4,1.9-0.8
    						c0.8-0.7,1.7-1.6,2.1-2.6c0,0,0-0.1,0-0.1C163.5,122.7,161.4,124.4,161.3,126.2C161.2,126.3,161.3,126.3,161.3,126.2
    						L161.3,126.2z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M162,122.8c0.2-0.3,0.6-1,1-1c0.5,0,0.1,1.2,0.1,1.5c0,0.1,0.1,0.1,0.1,0c0-0.3,0.4-1.5-0.1-1.6
    						C162.6,121.5,162.1,122.4,162,122.8C161.8,122.8,161.9,122.9,162,122.8L162,122.8z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M213.2,112.2c-0.8-0.9-0.5-2.5-0.2-3.5c0.1-0.6,0.3-1.2,0.6-1.7c0.1-0.2,0.2-0.5,0.3-0.6c0.2-0.2,0-0.2,0.2,0
    						c0.4,0.5,0.1,2.1,0,2.7c-0.1,0.9-0.2,2.3-0.9,3C213.2,112.2,213.2,112.2,213.2,112.2c0.7-0.7,0.8-1.8,0.9-2.7
    						c0.1-1.1,0.2-2.3-0.1-3.4c0,0-0.1,0-0.1,0C213.1,107.5,211.8,110.8,213.2,112.2C213.2,112.4,213.3,112.3,213.2,112.2
    						L213.2,112.2z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M213.4,112.7c0.2-1,0.9-1.8,1.8-2.3c0.3-0.2,2.1-0.9,2.3-0.4c0.1,0.3-1.4,1.5-1.6,1.7
    						C215.3,112.1,214.1,113.1,213.4,112.7C213.4,112.5,213.3,112.6,213.4,112.7c0.6,0.4,1.6-0.2,2.1-0.6c0.8-0.6,1.7-1.3,2.2-2.2
    						c0,0,0-0.1,0-0.1C215.8,109.4,213.6,110.9,213.4,112.7C213.2,112.7,213.3,112.7,213.4,112.7L213.4,112.7z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M214.3,109.3c0.2-0.2,1.1-1.3,1.3-0.6c0.1,0.4-0.2,0.9-0.2,1.2c0,0.1,0.1,0.1,0.1,0c0-0.3,0.6-1.5,0-1.6
    						C215,108.2,214.4,109,214.3,109.3C214.2,109.3,214.3,109.3,214.3,109.3L214.3,109.3z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M222.3,114.5c-0.6-1-0.2-2.3,0.2-3.4c0.2-0.6,0.5-1.1,0.8-1.6c0.2-0.3,0.5-1.2,0.7-0.6c0.2,0.8-0.2,2-0.4,2.8
    						c-0.2,0.9-0.5,2.2-1.3,2.7C222.3,114.4,222.3,114.5,222.3,114.5c0.8-0.5,1.1-1.7,1.3-2.5c0.3-1.1,0.6-2.3,0.4-3.5
    						c0,0-0.1-0.1-0.1,0C222.8,109.8,221.2,112.8,222.3,114.5C222.3,114.7,222.4,114.6,222.3,114.5L222.3,114.5z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M222.4,115c0.3-1,1.1-1.6,2.1-1.8c0.3-0.1,2.1-0.3,2.1,0.3c0,0.4-1.5,1.1-1.8,1.3C224.2,115.1,223,115.6,222.4,115
    						C222.4,114.9,222.4,115,222.4,115c1,1.2,3.8-0.7,4.4-1.5c0,0,0-0.1,0-0.1C225.2,112.5,222.9,113.3,222.4,115
    						C222.3,115.1,222.4,115.1,222.4,115L222.4,115z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M223.8,111.9c0.2-0.2,1.2-1,1.3-0.3c0.1,0.4-0.3,0.9-0.4,1.3c0,0.1,0.1,0.1,0.1,0c0.1-0.4,0.8-1.4,0.3-1.7
    						C224.6,111,224,111.6,223.8,111.9C223.7,111.8,223.7,111.9,223.8,111.9L223.8,111.9z"/>
    				</g>
    			</g>
    		</g>
    		<g>
    			<g>
    				<g>
    					<path d="M105.3,142.8c-18.2,1.3-35.5-4.7-52.7-9.8c-4.3-1.3-8.6-2.6-13-3.4c-3.9-0.7-7.8-1.1-11.6-2.1
    						c-4.3-1.1-8.2-3.1-12.1-5.2c-4-2.1-7.8-4.4-11.3-7.2c0,0-0.1,0-0.1,0.1c3.1,2.5,6.4,4.6,9.8,6.4c3.6,2,7.2,4,11.1,5.3
    						c4,1.3,8.2,1.9,12.4,2.6c4.7,0.8,9.2,2.1,13.8,3.5C69.2,138,86.8,144.2,105.3,142.8C105.4,142.9,105.4,142.8,105.3,142.8
    						L105.3,142.8z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M81.8,140.8c-6.8-2.5-12.2-8.9-16-14.8c0-0.1-0.1,0-0.1,0.1C69.5,132,74.9,138.4,81.8,140.8
    						C81.8,140.9,81.8,140.8,81.8,140.8L81.8,140.8z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M56.5,134.2c-1.8,1-4,0.4-5.9,0.9c-1.5,0.4-2.8,1.1-4.2,1.8c-3.6,2-6.7,4.7-10.7,6c-0.1,0,0,0.1,0,0.1
    						c3.7-1.2,6.7-3.6,10-5.6c2.1-1.2,4.3-2.4,6.8-2.5C54,134.8,55.3,135,56.5,134.2C56.6,134.3,56.5,134.2,56.5,134.2L56.5,134.2z"
    						/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M24.6,126.3c-5.3-2.8-7.6-9.3-11.1-13.9c0-0.1-0.1,0-0.1,0.1C17,117,19.2,123.5,24.6,126.3
    						C24.6,126.4,24.7,126.3,24.6,126.3L24.6,126.3z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M35.8,129.1c-3.5,0.6-5,5.4-8.1,7c-0.7,0.3-1.3,0.5-2,0.5c-0.6-0.1-2.4-0.5-1.7-1.3c0.3-0.4,2-0.5,2.6-0.8
    						c2.9-1.5,3.1-6.3,7.1-5.7c0.1,0,0.1-0.1,0-0.1c-1.5-0.2-2.6,0.2-3.6,1.4c-1.1,1.3-1.6,3-3.1,4c-1.1,0.7-2.5,0.9-3.7,1.2
    						c0,0,0,0.1,0,0.1C28.4,140.3,31.5,130,35.8,129.1C35.9,129.2,35.8,129.1,35.8,129.1L35.8,129.1z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M72.3,138.7c-3.5,0.6-5,5.4-8.1,7c-0.7,0.3-1.3,0.5-2,0.5c-0.6-0.1-2.4-0.5-1.7-1.3c0.3-0.4,2-0.5,2.6-0.8
    						c2.9-1.5,3.1-6.4,7.1-5.9c0.1,0,0.1-0.1,0-0.1c-1.6-0.2-2.6,0.3-3.6,1.5c-1.1,1.4-1.6,3.1-3.1,4.1c-1.1,0.7-2.5,0.9-3.7,1.2
    						c0,0,0,0.1,0,0.1C65,149.9,68,139.6,72.3,138.7C72.4,138.8,72.3,138.7,72.3,138.7L72.3,138.7z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M44.8,130.9c-2.6-1.9-2.4-6.4-4.2-9c-1.2-1.6-2.7-2.7-4.7-3c0,0-0.1,0.1,0,0.1c4.5,2,4.4,7.6,6.7,11.3
    						c0,0.1,0.1,0,0.1-0.1c-1.3-2.1-1.8-4.6-2.8-6.9c-0.4-0.9-0.8-1.7-1.3-2.5c-0.4-0.6-1.5-1.1-1.8-1.6c-0.4-0.2-0.3-0.2,0.2-0.1
    						c0.4,0.1,0.8,0.3,1.2,0.5c0.8,0.4,1.4,1,2,1.7c1.1,1.3,1.7,2.9,2.2,4.5C42.8,127.8,43.2,129.9,44.8,130.9
    						C44.8,131.1,44.9,131,44.8,130.9L44.8,130.9z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M13.8,121.4c-1.5-0.3-2.3,0.8-3.1,1.8c-1.2,1.4-2.7,2.7-4.8,2.2c0,0-2.5-0.9-2.4-1.3c0,0.1,1,0.3,0.9,0.3
    						c3.3,0.6,4.6-3.4,7.2-4.5c0.1,0,0-0.1,0-0.1c-3.2,1.3-4.4,6.1-8.6,3.9c0,0-0.1,0-0.1,0.1c1.4,1.2,3,2.1,4.8,1.6
    						C10,124.9,11.5,121,13.8,121.4C13.9,121.5,13.9,121.4,13.8,121.4L13.8,121.4z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M35.8,142.9c-0.9-1.6-3.3-1.4-4.5-0.1c0,0,0,0.1,0,0.1C32.2,143.6,35,144.4,35.8,142.9c-0.1,0-0.1,0-0.2,0
    						c-0.3,0.7-1.3,0.7-2,0.6c-0.4,0-1.9-0.2-2.1-0.7c-0.2-0.5,1.5-0.9,1.8-1C34.3,141.8,35.2,142.1,35.8,142.9
    						C35.7,143,35.8,143,35.8,142.9L35.8,142.9z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M36,143.2c-2,0.3-1.7,4.2-1.4,5.5c0,0,0.1,0,0.1,0c1.1-1.1,2-3.9,1.3-5.4c0-0.1-0.1,0-0.1,0.1c0.4,0.9,0.1,2.1-0.2,3
    						c-0.1,0.4-0.8,2.2-1.1,2.1c-0.3-0.2-0.1-2.2-0.1-2.5c0.1-0.9,0.3-2.5,1.4-2.7C36.1,143.2,36.1,143.1,36,143.2L36,143.2z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M33.6,143.8c-0.3,0.4-0.6,0.9-0.5,1.4c0.1,0.7,0.8,0.3,1.2,0.4c0.1,0,0.1-0.1,0-0.1c-0.1,0-0.2,0-0.3,0
    						c-0.3,0-0.2,0.1-0.5-0.1c-0.3-0.2-0.3-0.2-0.3-0.5C33.3,144.5,33.5,144.2,33.6,143.8C33.8,143.8,33.7,143.8,33.6,143.8
    						L33.6,143.8z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M65.7,125.9c1.6-1.2,0.5-4.8-0.3-6.2c0,0-0.1,0-0.1,0c-0.4,1-0.4,2.1-0.4,3.2c0,0.9,0,2.1,0.7,2.9c0,0.1,0.1,0,0.1-0.1
    						c-0.6-0.8-0.6-2-0.6-3c0-0.6-0.1-2.1,0.3-2.6c0.3-0.4,0.4,0.5,0.5,0.8c0.2,0.5,0.3,1,0.4,1.4C66.3,123.3,66.6,125.1,65.7,125.9
    						C65.6,125.8,65.6,125.9,65.7,125.9L65.7,125.9z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M65.6,126.2c-0.2-1.8-2.3-3.6-4.1-3.5c0,0-0.1,0,0,0.1c0.5,1,1.3,1.9,2.1,2.6c0.5,0.4,1.3,1.1,1.9,0.8
    						c0.1,0,0-0.1-0.1-0.1c-0.7,0.4-1.8-0.8-2.3-1.2c-0.3-0.3-0.5-0.6-0.8-0.9c-0.2-0.2-0.7-0.7-0.7-1.1c0-0.3,0.5-0.1,0.7,0
    						c0.4,0.1,0.8,0.3,1.2,0.6C64.5,124.1,65.3,125,65.6,126.2C65.5,126.3,65.6,126.3,65.6,126.2L65.6,126.2z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M64.9,122.7c-0.2-0.3-0.7-1.2-1.2-1.1c-0.5,0.1-0.1,1.3-0.1,1.6c0,0.1,0.1,0.1,0.1,0c0-0.3-0.4-1.5,0.1-1.5
    						C64.2,121.7,64.7,122.5,64.9,122.7C64.9,122.8,64.9,122.8,64.9,122.7L64.9,122.7z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M13.6,112.3c1.4-1.5,0.1-4.8-0.8-6.2c0,0-0.1,0-0.1,0c-0.3,1.1-0.2,2.3-0.1,3.4c0.1,0.9,0.2,2,0.9,2.7
    						c0,0,0.1,0,0.1-0.1c-0.7-0.7-0.8-2-0.9-2.9c-0.1-0.6-0.4-2.3,0-2.8c0.2-0.3,0.3,0.3,0.5,0.6c0.2,0.5,0.4,1,0.5,1.6
    						C14,109.6,14.4,111.3,13.6,112.3C13.5,112.2,13.6,112.3,13.6,112.3L13.6,112.3z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M13.5,112.6c-0.4-1.8-2.5-3.2-4.3-2.8c0,0,0,0,0,0.1c0.5,0.9,1.4,1.6,2.2,2.2c0.5,0.3,1.4,1,2.1,0.5
    						c0.1,0,0-0.1-0.1-0.1c-0.7,0.5-1.8-0.4-2.3-0.8c-0.4-0.3-0.7-0.6-1-0.9c-0.1-0.1-0.8-0.7-0.7-0.9c0.1-0.5,2,0.3,2.2,0.4
    						C12.5,110.8,13.2,111.6,13.5,112.6C13.4,112.7,13.5,112.7,13.5,112.6L13.5,112.6z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M12.6,109.2c-0.2-0.3-0.8-1.1-1.2-0.9c-0.5,0.2,0,1.3,0,1.6c0,0.1,0.1,0.1,0.1,0c0-0.2,0-0.3-0.1-0.5
    						c0-0.2-0.2-0.6-0.2-0.8c0.1-0.1,0.3-0.2,0.4-0.3c0,0,0.1,0,0.1,0.1c0.1,0,0.2,0.2,0.3,0.2C12.2,108.9,12.3,109.1,12.6,109.2
    						C12.5,109.3,12.6,109.3,12.6,109.2L12.6,109.2z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M4.5,114.6c1-1.8-0.5-4.7-1.7-6.1c0,0-0.1,0-0.1,0c-0.1,1.1,0.1,2.4,0.4,3.5c0.2,0.8,0.5,2,1.2,2.5
    						c0.1,0,0.1-0.1,0.1-0.1c-0.8-0.5-1-1.7-1.2-2.5c-0.2-0.8-0.7-2.1-0.4-2.9c0.1-0.2-0.1-0.2,0.1-0.2c0.1,0,0.4,0.6,0.5,0.7
    						c0.3,0.5,0.5,1,0.7,1.5C4.6,111.9,5.1,113.4,4.5,114.6C4.4,114.6,4.5,114.6,4.5,114.6L4.5,114.6z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M4.5,115c-0.6-1.7-2.9-2.5-4.5-1.6c0,0,0,0.1,0,0.1c0.7,0.8,3.4,2.8,4.4,1.6c0,0,0-0.1-0.1-0.1
    						c-0.5,0.7-1.8,0.1-2.4-0.2c-0.3-0.1-1.9-0.9-1.8-1.3c0.1-0.5,1.8-0.3,2.1-0.3C3.3,113.4,4,114,4.5,115C4.4,115,4.5,115,4.5,115
    						L4.5,115z"/>
    				</g>
    			</g>
    			<g>
    				<g>
    					<path d="M3.1,111.8c-0.3-0.2-0.9-0.8-1.3-0.6c-0.5,0.3,0.2,1.3,0.3,1.7c0,0.1,0.1,0,0.1,0c0-0.2-0.1-0.3-0.1-0.4
    						c-0.1-0.1-0.3-0.6-0.3-0.8c0-0.1,0.3-0.3,0.5-0.3c0.1,0,0.2,0.1,0.3,0.2C2.7,111.6,2.8,111.7,3.1,111.8
    						C3,111.9,3.1,111.8,3.1,111.8L3.1,111.8z"/>
    				</g>
    			</g>
    		</g>
    	</g>
    </g>
    </svg>
    

    The problem is, since the format changes from one two another, is complicate to always make the formula to center the text.

    I'm using 'opentype.js' library to transform text to path (the final code cannot have text tags).

    So, my question is: Wich is the best way to center the text (path tags) ?


    • Moved by Bill_Stewart Monday, December 17, 2018 6:05 PM This is not "scripts on demand"
    Thursday, September 27, 2018 10:34 AM

All replies

  • This is not an Adobe SVG forum.  Please post your issue in the correct Adobe forum.


    \_(ツ)_/

    Thursday, September 27, 2018 12:44 PM