Skip to content

SVG fallback font consistency #413

Open
@Ascor8522

Description

@Ascor8522

I was messing around with the paint editor. I felt across multiple problems...

One of them was the fallback font of svg constumes. The paint editor is showing the text with a font like sans-serif (without serifs) while the render (scene) is showing the text in a font with serifs.

Code use for the svg:

<svg height="480" width="360">
    <text x="0" y="0" fill="red">I love SVG!</text>
</svg>

Note: no font-family attribute is use in the text.

Expected Behavior

The paint editor and the render (scene) should use the same fallback font if no font is provided.

Actual Behavior

Paint editor uses a font without serifs.
Rendre (scene) uses a font with serifs.

See below:
fallbackfont

Steps to Reproduce

Create a .SVG file with the code above.
Import the newly created svg file in your project (I tried with an empty project).
See the difference.

Operating System and Browser

Tried on a Windows 10 Pro v.1809 with :

  • Google Chrome 72.0.3626.96 (64 bits)
  • Microsoft Edge 44.17763.1.0
  • Mozilla Firefox 60.5.1esr (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions