resvg icon indicating copy to clipboard operation
resvg copied to clipboard

Letters overlap each other on specific font and combination of letters

Open antmelnyk opened this issue 1 year ago • 2 comments

Hey @RazrFalcon, I hope you're doing OK.

There is a weird issue with text resolving that was caught for one particular font and a combination of letters. Not sure exactly on which level that happens - either usvg-text-layout or rustybuzz. Maybe you have an idea?

SVG:

<svg width='100' height='100' viewBox='0 -201.7578125 100 251.3671875'
    xml:space='preserve'
    xmlns='http://www.w3.org/2000/svg'
    xmlns:xlink='http://www.w3.org/1999/xlink'>
    <text x='0' y='0' font-size='200' font-family='Fjalla One' fill='#000000'>fit</text>
</svg>

Font Fjalla One (https://fonts.google.com/specimen/Fjalla+One?noto.query=Roboto&preview.text=fit&preview.text_type=custom&query=fjalla)

Result of running minimal.rs example with added fontdb.load_font_file("./examples/Fjalla One-regular.ttf").unwrap();

Expected (rsvg-convert): rsvg

Actual (ReSVG): resvg

antmelnyk avatar Jun 05 '23 10:06 antmelnyk