Skip to content

Do not assume specific fonts for SVG images #1154

Open
@donovanglover

Description

@donovanglover

Hello,

Right now there is no restriction on which font SVG images use. Since the boxes are hard-coded, and since fonts vary in size, this negatively affects the presentation of some images. Example.

SVG fonts were proposed some years ago to fix this problem, although most browsers seem to have dropped this part of the spec in favor of using inline CSS instead.

More specifically, all the font-family="Times,serif" sections need to be changed. You can't assume that a user's serif font will have the same spacing as Times.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions