uber / cyborg

Display Android Vectordrawables on iOS.
Apache License 2.0
302 stars 19 forks source link

Investigate potential bug in prior context #76

Open benpious opened 4 years ago

benpious commented 4 years ago

The spec specifies that only certain commands should use parts of the "prior context" construct that we use in DrawingCommands.swift to convey information about prior curves in the path.

The fact that we are seemingly more liberal than the spec, and would allow, for example, a T command to use prior context from a C command. This may be responsible for bugs like the one below in rendering the flag of Sri Lanka.

Screen Shot 2020-05-12 at 12 13 15 PM