Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Eastern Arabic numerals are strong LTR
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Aug 22, 2016
1 parent 55b3d92 commit 9665c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/text/glyph_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void align(Shaping &shaping, const float justify, const float horizontalAlign,
// Returns true if the glyph is a strong right-to-left glyph.
bool isRTL(uint32_t glyph) {
// Use the major RTL Unicode code blocks as a rough approximation.
return ((glyph >= 0x600 && glyph <= 0x6ff) /* Arabic */
return ((glyph >= 0x600 && glyph <= 0x6ff && (glyph < 0x660 || glyph > 0x669) && glyph != 0x66b && glyph != 0x66c && (glyph < 0x6f0 || glyph > 0x6f9)) /* Arabic */
|| (glyph >= 0x750 && glyph <= 0x77f) /* Arabic Supplement */
|| (glyph >= 0x8a0 && glyph <= 0x8ff) /* Arabic Extended-A */
|| (glyph >= 0x590 && glyph <= 0x5ff) /* Hebrew */
Expand Down

0 comments on commit 9665c7a

Please sign in to comment.