Phantomjs font rendering issue in svg file -


i have svg file i'd convert png, there issue displaying fonts in output png.

here how original svg looks in chrome browser:

enter image description here

here how looks after converting png using phantomjs:

enter image description here

any ideas why cuts text?

phantomjs v2.1 on amazon linux ami release 2017.03

edit:

here svg (font included): http://45.55.136.163/p/demo.svg

the metrics magnolia_sky font set descender @ 250 units. looking @ "g" being clipped @ line. ascender @ 750 units corresponds place "h", "d", , "i" clipped.

it seem phantomjs hard clipping each glyph box determined vertical metrics font whole rather checking glyphs extend beyond limits. edit metrics in fontforge workaround. kerning not being applied correctly (or @ all) why glyphs don't connect intended designer. whatever renderer phantomjs using applying base glyph advance each character no further adjustment.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -