converting svg files with google fonts into png - PHP -
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow: hidden; position: relative;" width="100%" version="1.1" height="100%"><defs><style> @import url(http://fonts.googleapis.com/css?family=faster+one);</style></defs><text transform="matrix(1,0,0,1,0,0)" style="text-anchor: middle; ; font-size: 100px;" x="10%" y="32.36134453781513%" text-anchor="middle" font="" stroke="none" fill="#000000" font-family=" faster 1 , cursive" font-size="78%" id="text2"><tspan dy="nan">hii</tspan></text></svg>
when tried convert svg png using php imagick
, renders text in default font (arial).
is there way use same google font render text, when converting png ?
any appreceated. in advance.
phantomjs can render svg including google fonts little work. https://github.com/ariya/phantomjs/issues/10592
Comments
Post a Comment