Skip to content

Accent / Combining Mark placement differences between CoreText and own shaper #1264

@drott

Description

@drott

When trying to switch to the own shaping backend on Mac, I see a couple of combining mark placement differences:

  1. Lucida Grande Hebrew:

The OT shaper moves the sheva slightly to the left compared to CoreText.

$ ./hb-shape /System/Library/Fonts/LucidaGrande.ttc `../test/shaping/hb-unicode-encode U+05E1,U+05B0` --shaper=coretext
[shevahebrew=0+0|samekhhebrew=0+1361]
$ ./hb-shape /System/Library/Fonts/LucidaGrande.ttc `../test/shaping/hb-unicode-encode U+05E1,U+05B0` --shaper=ot 
[shevahebrew=0@-7,0+0|samekhhebrew=0+1361]
  1. Lucida Grande m + accent grave

Coretext places U+0300 further north from the m glyph:

$ ./hb-shape /System/Library/Fonts/Helvetica.ttc `../test/shaping/hb-unicode-encode U+006D,U+0300` --shaper=coretext
[m=0+1422|gravecmb=0@0,96+283]
$ ./hb-shape /System/Library/Fonts/Helvetica.ttc `../test/shaping/hb-unicode-encode U+006D,U+0300` --shaper=ot
[m=0+1706|gravecmb=0@-284,10+0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChromeChrome/Chromium project related issues and requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions