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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -