Skip to content

Conversation

itsmeichigo
Copy link
Contributor

Fixes woocommerce/woocommerce-ios#11866

Description

We have a custom implementation for underlining text, and the logic involves checking for a range of glyphs in strings. For text with special glyphs (e.g. Arabic language), this range is sometimes out of the bound of the text (I have yet to find an exact explanation for this).

The fix is to fall back to using the default implementation if we detect that a glyph range is invalid.

Testing steps

  • Run the demo app
  • Open the content Underline NBSP
  • Check that underlines are drawn correctly and the app doesn't crash.

  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.
Copy link

@selanthiraiyan selanthiraiyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me. :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants