Skip to content

[aat] Mac OS 10.12 Apple Chancery feature activation issues #1331

@drott

Description

@drott

HarfBuzz fails to activate the following features listed below on a specific older version of Apple Chancery.

$ ttx -t name -o-  "Apple Chancery.ttf" |grep -A2 ' nameID="3" platformID="1" platEncID="0" langID="0x0" unicode="True"'
Dumping "Apple Chancery.ttf" to "-"...
Dumping 'name' table...
    <namerecord nameID="3" platformID="1" platEncID="0" langID="0x0" unicode="True">
      Apple Chancery; 8.0d1e1; 2013-02-06
    </namerecord>
$ shasum -a256 "Apple Chancery.ttf"
5c2c395db1530579e282895f08f087f30bfba3951f3ebf7f7faaa7497596be47  Apple_Chancery_10_12.ttf

Ligatures

Coretext forms T_h and t_h ligatures. Other example ligatures in this font: ll te to tr fr fu fj

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=coretext --font-funcs=ot "Th th"
[T_h=0+2308|space=2+569|t_h=3+1687]

HarfBuzz' native AAT shaper does not form the ligatures:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=ot --font-funcs=ot "Th th"
[T=0+1560|h=1+1090|space=2+569|t=3+725|h=4+1090]

Smart Quotes

Where CoreText forms smart quotes:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=coretext  "\"quotes\""
[quote.double.left=0+779|q=1+993|u=2+1148|o=3+878|t_e=4+1408|s=6+728|quote.double.right=7+779]

HarfBuzz ignores this feature:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=ot --font-funcs=ot "\"quotes\""
[quote.double=0+712|q=1+993|u=2+1148|o=3+878|t=4+725|e=5+761|s=6+728|quote.double=7+712]

Tabular Numbers

CoreText:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=coretext  --features=tnum "0123"
[zero.lining=0+1138|one.lining=1+1138|two.lining=2+1138|three.lining=3+1138]

HarfBuzz:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=ot --font-funcs=ot --features=tnum "0123"
[zero=0+1056|one=1+882|two=2+1144|three=3+944]

Superiors

CoreText:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=coretext --features=+sups "01234"
[zero.superior=0+750|one.superior=1+750|two.superior=2+750|three.superior=3+750|four.superior=4+750]

HarfBuzz:

$ ./hb-shape Apple_Chancery_10_12.ttf --shaper=ot --font-funcs=ot  --features=+sups "01234"
[zero=0+1056|one=1+882|two=2+1144|three=3+944|four=4+1266]

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