Skip to content

Khmer shaping does not match Uniscribe or CoreText #667

@punchcutter

Description

@punchcutter

Brought up by @mcdurdin at https://twitter.com/MarcDurdin/status/941516844195749888
Text is
ស៊ើប

  1. ស៉ើុប
  2. ស៉េីុប
  3. ស៉ីេុប
  4. ស៉ើុុប
  5. ស៉េីុុប
  6. ស៉ីេុុប
  7. ស៊ើុប
  8. ស៊េីុប
  9. ស៊ីេុប
  10. ស៊ើុុប
  11. ស៊េីុុប
  12. ស៊ីេុុប
  13. ស៉ើីប
  14. ស៉ីើប
  15. ស៉ើីុប
  16. ស៉ីើុប
  17. ស៊ើីប
  18. ស៊ីើប
  19. ស៊ើីុប
  20. ស៊ីើុប
  21. សើីុប
  22. សើុីប
  23. សីើុប
  24. សីុើប

Windows 10 Edge and OS X 10.12.6 TextEdit agree that only one combination can be rendered correctly:
khmer_seep_textedit_win10_edge
khmer_seep_textedit_osx_10 12 6

harfbuzz (here Firefox Nightly, but also tested with latest hb-view) does not agree and allows all of these combinations to render.
khmer_seep_firefox

Font handling of consonant shifters can be different depending on the font which is why the Android test with an older version of Noto Khmer showed everything rendering exactly the same. The new version of Noto Khmer doesn't allow that to happen (only 7-12 above look correct even though they aren't), but either way the shaper shouldn't allow every one of these to shape the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions