Skip to content

[vector_graphics_compiler] Support non-standard font-weight="regular" styling #186933

Description

@LyGoeAbb

Hello,
An issue for the vector_graphics_compiler package:

I am generating SVGs with the VectSharp library which generates styling using a non-standard keyword, "regular" instead of "normal" for the font weight. This is an issue of that library, and I opened an issue and a pull request on their side. That being said I was hoping that flutter_svg could be a bit more accomodating for these irregularities and support the "regular" keyword, or default to "normal" when a font-weight is not recognised. at this moment the code simply throws an error.

Proposed change:
in lib/src/svg/parser.dart line 1387, replace by:
return normalFontWeight

Thank you for maintaining this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onpackageflutter/packages repository. See also p: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions