Skip to content

Stroke width is not transformed #157

@mavit

Description

@mavit

I'm trying to build the SVGs from the OpenMoji project into a font, but the source SVG files typically contain a lot of padding around the edges, and hence each character appears rather small when converted.

To try to work around this, I'm hacking a transform=scale(1.3) attribute into the root node of each SVG file. This seems to work as expected if I view the hacked files with any SVG viewer I've tried, but it doesn't quite work correctly with nanoemoji. The shapes are upscaled, but the stroke width is not.

This can be quite hard to see, so for this screenshot I have exaggerated the effect with scale(10). Scaled:
image

Unscaled:
image

Relates to hfg-gmuend/openmoji#260.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions