Skip to content

Add support for variable font weight detection/conversion #962

@condemil

Description

@condemil

OS: macOS 26.1 / Debian 13.2

Font: https://fonts.google.com/specimen/Nunito+Sans

Font is loaded:

$ resvg --list-fonts | grep Nunito                      
/Users/foo/Library/Fonts/NunitoSans-Italic[YTLC,opsz,wdth,wght].ttf: 'Nunito Sans (English, United States)', 0, Italic, 200, Normal
/Users/foo/Library/Fonts/NunitoSans[YTLC,opsz,wdth,wght].ttf: 'Nunito Sans (English, United States)', 0, Normal, 200, Normal

SVG to reproduce:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" fill="currentColor" stroke="none" >
    <text x="0" y="100" font-family="Nunito Sans" font-weight="bold" font-size="100">test</text>
</svg>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions