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:
here how looks after converting png using phantomjs:
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
Post a Comment