Skip to content

Fork with tests and fixes #7

@cronosun

Description

@cronosun

Thank you very much for this great project. I played around with it a bit and it worked perfectly, except for 2 things:

  • I don't get a path for some codepoints where there should be a path. I suspect that the problem is that some fonts (e.g. Font-Awesome) use multiple codepoints for the same glyph.
  • As mentioned in the issue RangeError #6, the lib crashes with some fonts.

Well: I forked the repo and wrote some tests. At least for 3 fonts (Font-Awesome, Google Material-Icons and Ion-Icons) everything should work now. Other changes: There is now a map from CodePoint -> Glyph (before there was only one from Glyph -> CodePoint); this should solve the problem that the library can't generate a path for some CodePoints. The Public API should be unchanged. Also has more strong typing (less “dynamic”).

You might be interested in some of the changes (think at least the tests could be applied to this repo).

Fork: https://github.com/cronosun/text-to-path-maker-for-flutter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions